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
Copy file name to clipboardExpand all lines: test/Concurrency/predates_concurrency.swift
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -108,14 +108,14 @@ func testCalls(x: X) {
108
108
}
109
109
110
110
func testCallsWithAsync()async{
111
-
onMainActorAlways() // expected-error{{expression is 'async' but is not marked with 'await'}}
111
+
onMainActorAlways() // expected-warning{{expression is 'async' but is not marked with 'await'}}
112
112
// expected-note@-1{{calls to global function 'onMainActorAlways()' from outside of its actor context are implicitly asynchronous}}
113
113
114
114
let _:()->Void= onMainActorAlways // expected-warning {{converting function value of type '@MainActor () -> ()' to '() -> Void' loses global actor 'MainActor'}}
115
115
116
-
letc=MyModelClass() // expected-error{{expression is 'async' but is not marked with 'await'}}
116
+
letc=MyModelClass() // expected-warning{{expression is 'async' but is not marked with 'await'}}
117
117
// expected-note@-1{{calls to initializer 'init()' from outside of its actor context are implicitly asynchronous}}
118
-
c.f() // expected-error{{expression is 'async' but is not marked with 'await'}}
118
+
c.f() // expected-warning{{expression is 'async' but is not marked with 'await'}}
119
119
// expected-note@-1{{calls to instance method 'f()' from outside of its actor context are implicitly asynchronous}}
0 commit comments