Afaics the motivation has been explained in detail, but actually, you even can declare such a variable as long as it has its own scope:
class Test {
func f(i: Int) {
print(i)
}
func g() {
let f = 1 // hey, works!
print(f)
print(self.f(i:f)) // works as well
}
var f: (Int) -> Void = f // huh?
} _______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
