官术网_书友最值得收藏!

Default parameter values must be public

The compiler now checks accessibility of referenced objects a bit more strictly; non-literal values that you want to use in public functions as arguments should also be public. Among other things, this exposes an opportunity for optimizing access to the value at the call site. As this may involve API design, the migrator does not suggest fixes, although there are some possibilities for you to consider as an API author:

  • Making the referenced default values public
  • Providing public functions that return a sensible default value

In both cases, consider the impact of exposing a new API, ensuring that you document your public symbols.

主站蜘蛛池模板: 乌鲁木齐县| 玉田县| 石泉县| 千阳县| 碌曲县| 山阳县| 临洮县| 都兰县| 乌兰浩特市| 武鸣县| 襄城县| 克山县| 湘潭县| 丽水市| 闸北区| 阿巴嘎旗| 方山县| 聂拉木县| 桂林市| 三原县| 昭平县| 通州区| 凤冈县| 莆田市| 武川县| 兴山县| 出国| 县级市| 东至县| 汉沽区| 泰州市| 咸阳市| 马边| 平阴县| 林口县| 达州市| 集贤县| 翁源县| 宜兰市| 烟台市| 汝州市|