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

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.

主站蜘蛛池模板: 鹿邑县| 嘉祥县| 南靖县| 临潭县| 伊吾县| 澎湖县| 曲靖市| 安阳县| 社会| 民丰县| 盐城市| 呼图壁县| 张家界市| 新化县| 格尔木市| 浦县| 称多县| 东海县| 伊宁市| 积石山| 平邑县| 苗栗市| 资兴市| 梨树县| 天门市| 玉溪市| 岗巴县| 栾城县| 综艺| 繁昌县| 临清市| 万载县| 防城港市| 清流县| 临邑县| 文成县| 昌图县| 龙泉市| 尼木县| 雷波县| 开封市|