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

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/.
主站蜘蛛池模板: 项城市| 凌海市| 高陵县| 于田县| 饶平县| 罗山县| 额尔古纳市| 土默特左旗| 奎屯市| 化州市| 资兴市| 鸡东县| 湘西| 大新县| 都兰县| 荔浦县| 石柱| 永定县| 贺州市| 莱阳市| 沂水县| 舞钢市| 南华县| 沙田区| 泾阳县| 东兰县| 漠河县| 许昌县| 睢宁县| 开江县| 晋中市| 绥江县| 和林格尔县| 万山特区| 大新县| 滦南县| 江油市| 门源| 灵丘县| 安化县| 潜江市|