> Vladimir.S via swift-evolution <swift-evolution@...> 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?




_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to