Given a method signature like this:
func foo(
operation: @escaping () throws(E) -> Void,
handler: @escaping (_ error: E) -> Void
)

is there a way to make the call site see the concrete Error type when calling this? The compiler makes it any Error inside the handler closure.

Comments