No, you cannot do that yet.
struct S {
func callAsFunction() {}
}
func method(_: () -> Void) {}
let s = S()
method(s) // error
No, you cannot do that yet.
struct S {
func callAsFunction() {}
}
func method(_: () -> Void) {}
let s = S()
method(s) // error