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

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/.
主站蜘蛛池模板: 琼海市| 阿坝县| 阿克陶县| 瑞丽市| 宿松县| 凌云县| 二手房| 绥滨县| 灵丘县| 右玉县| 固阳县| 中宁县| 盘山县| 宁武县| 承德县| 昔阳县| 新龙县| 栾川县| 山阳县| 安阳县| 鸡东县| 墨竹工卡县| 永兴县| 伊春市| 巫溪县| 陕西省| 若尔盖县| 乐清市| 南岸区| 墨江| 西峡县| 镇沅| 依安县| 佛坪县| 嘉兴市| 开阳县| 吉林市| 全南县| 林芝县| 石屏县| 拉萨市|