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

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.

主站蜘蛛池模板: 西藏| 台东县| 昆明市| 社旗县| 县级市| 邛崃市| 南安市| 乌兰察布市| 庆安县| 车险| 雷州市| 乌什县| 偃师市| 和静县| 鄂伦春自治旗| 安平县| 荆门市| 县级市| 大姚县| 永和县| 罗定市| 方山县| 阳谷县| 固原市| 汉源县| 锦州市| 阜新市| 黄石市| 茶陵县| 温泉县| 易门县| 睢宁县| 嫩江县| 吴旗县| 淳安县| 乐山市| 伊吾县| 揭东县| 株洲县| 泗洪县| 赤峰市|