[swift-evolution] [Review] SE-0110: Distinguish between single-tuple and multiple-argument function types
Daniel Duan
daniel at duan.org
Fri Jul 1 20:20:00 CDT 2016
> Vladimir.S via swift-evolution <swift-evolution at ...> writes:
Following your conclusion, should this be legal as well?
let f: () -> Void = { x in print(x) } // f() prints "()"
let f: (Int) -> Void = { x in print(x) } // f(5) prints "5"
In other words, "0 argument" is an impossible scenario?
More information about the swift-evolution
mailing list