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 can use property wrapper for closure argument, but we cannot use it with combine throw/await.
import SwiftUI
structMyError:Error{}func myFunc()async{}leta:(Binding<Int>)throws->()={ value inthrowMyError()}letb:(Binding<Int>)throws->()={ $value inthrowMyError()// Error is not handled because the enclosing function is not declared 'throws'}letc:(Binding<Int>)async->()={ $value inawaitmyFunc()// 'async' call in a function that does not support concurrency}
The text was updated successfully, but these errors were encountered:
Environment
Xcode Version 13.0 (13A233)
Additional Detail from JIRA
md5: f470f61b1e8417f6ec41e7eea40ae400
Issue Description:
About SE-0293
We can use property wrapper for closure argument, but we cannot use it with combine throw/await.
The text was updated successfully, but these errors were encountered: