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-note@+3 {{calls to initializer 'init()' from outside of its actor context are implicitly asynchronous}}
38
-
// expected-warning@+2 {{expression is 'async' but is not marked with 'await'}}
39
-
// expected-warning@+1 {{non-sendable type 'CoffeeTrackerView' returned by call to main actor-isolated function cannot cross actor boundary}}
40
-
letview=CoffeeTrackerView()
42
+
letview=CoffeeTrackerView() // synthesized 'init' is 'nonisolated'
41
43
42
-
// expected-warning@+4 {{non-sendable type 'CoffeeTrackerView' passed in implicitly asynchronous call to main actor-isolated property 'body' cannot cross actor boundary}}
43
44
// expected-note@+3 {{property access is 'async'}}
44
45
// expected-warning@+2 {{non-sendable type 'some View' in implicitly asynchronous access to main actor-isolated property 'body' cannot cross actor boundary}}
45
46
// expected-warning@+1 {{expression is 'async' but is not marked with 'await'}}
46
47
_ = view.body
47
48
48
-
// expected-warning@+4 {{non-sendable type 'CoffeeTrackerView' passed in implicitly asynchronous call to main actor-isolated property 'showDrinkList' cannot cross actor boundary}}
49
-
// expected-note@+3 {{property access is 'async'}}
50
-
// expected-warning@+2 {{non-sendable type 'Visibility' in implicitly asynchronous access to main actor-isolated property 'showDrinkList' cannot cross actor boundary}}
49
+
// expected-note@+2 {{property access is 'async'}}
51
50
// expected-warning@+1 {{expression is 'async' but is not marked with 'await'}}
52
51
_ = view.showDrinkList
53
52
54
-
// expected-warning@+2 {{non-sendable type 'CoffeeTrackerView' passed in implicitly asynchronous call to main actor-isolated property 'storage' cannot cross actor boundary}}
55
-
// expected-warning@+1 {{non-sendable type 'Visibility' in implicitly asynchronous access to main actor-isolated property 'storage' cannot cross actor boundary}}
0 commit comments