You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We somehow ended up with a set hidden in `Task` as well as a set at top level. SILGen currently
hooks into the top-level ones, so shed the `Task`-namespaced versions for now.
// after all: if you have async code, just call it directly, without the unsafe continuation
46
-
let _:String=Task.withUnsafeContinuation{ continuation in // expected-error{{cannot convert value of type '(_) async -> ()' to expected argument type '(Task.UnsafeContinuation<String>) -> Void'}}
46
+
let _:String=Task.withUnsafeContinuation{ continuation in // expected-error{{cannot convert value of type '(_) async -> ()' to expected argument type '(UnsafeContinuation<String>) -> Void'}}
47
47
lets=awaitsomeAsyncFunc() // rdar://70610141 for getting a better error message here
0 commit comments