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

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.

主站蜘蛛池模板: 红桥区| 阳新县| 堆龙德庆县| 东海县| 团风县| 扶风县| 阜新| 东城区| 靖宇县| 曲沃县| 泽普县| 安龙县| 巴南区| 华坪县| 肥西县| 库尔勒市| 类乌齐县| 西峡县| 南宫市| 淮阳县| 玉屏| 桃源县| 通化县| 青岛市| 锦屏县| 石楼县| 洪湖市| 河源市| 眉山市| 海原县| 瑞安市| 沾化县| 九江县| 工布江达县| 宝坻区| 大兴区| 陵水| 西贡区| 榆林市| 台中市| 元江|