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

Differentiating between single-tuple and multiple-argument function types

f: (Void) -> ()

When using f: (Void) -> () for the type of a function argument, it is generally meant to be f: () -> (), so the migrator will suggest that you use this type instead. Otherwise, with the new rules in SE-0110 for Swift 4, you will need to call the f function as f(()).

To read more about the Swift proposals, you can visit https://Apple.github.io/swift-evolution/.
主站蜘蛛池模板: 荔浦县| 融水| 洪泽县| 五原县| 方城县| 邓州市| 梁河县| 民丰县| 台北县| 洛隆县| 个旧市| 同仁县| 秦安县| 道真| 尉犁县| 离岛区| 临澧县| 新民市| 湖口县| 秦安县| 昭苏县| 广安市| 赤峰市| 永靖县| 云浮市| 兴仁县| 原平市| 金坛市| 建平县| 汉沽区| 贡觉县| 剑河县| 微山县| 屏南县| 洛南县| 西宁市| 卓尼县| 乐陵市| 蓝山县| 贵港市| 资源县|