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
// expected-error@-1 {{subscript cannot be marked @objc because it has generic parameters}}
2383
2383
}
2384
-
2385
-
// async cannot be compiled with @objc.
2386
-
classConcurrency{
2387
-
@objcfunc doBigJob()async->Int{return0} // expected-error{{'async' function cannot be represented in Objective-C}}
2388
-
2389
-
@objcfunc takeAnAsync(_ fn:()async->Int){} // expected-error{{method cannot be marked @objc because the type of the parameter cannot be represented in Objective-C}}
2390
-
// expected-note@-1{{'async' function types cannot be represented in Objective-C}}
@objcfunc doBigJob()async->Int{return0} // expected-error{{'async' function cannot be represented in Objective-C}}
11
+
12
+
@objcfunc takeAnAsync(_ fn:()async->Int){} // expected-error{{method cannot be marked @objc because the type of the parameter cannot be represented in Objective-C}}
13
+
// expected-note@-1{{'async' function types cannot be represented in Objective-C}}
0 commit comments