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

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.

主站蜘蛛池模板: 翼城县| 阳原县| 桂林市| 搜索| 黄平县| 利辛县| 灵丘县| 塔城市| 西畴县| 福建省| 寻甸| 福建省| 鄂州市| 旺苍县| 鄂伦春自治旗| 梁平县| 逊克县| 永清县| 大埔县| 游戏| 上林县| 喀喇| 商洛市| 讷河市| 东光县| 合作市| 潜山县| 齐齐哈尔市| 名山县| 团风县| 寻甸| 安徽省| 阿图什市| 巴中市| 建湖县| 温宿县| 江山市| 滦平县| 阿拉善左旗| 陕西省| 上杭县|