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
distributed.distHelloAsync()// expected-error{{expression is 'async' but is not marked with 'await'}}
53
53
// expected-error@-1{{call can throw but is not marked with 'try'}}
54
-
// expected-note@-2{{calls to distributed instance method 'distHelloAsync()' from outside of its actor context are implicitly asynchronous}}
54
+
// expected-note@-2{{call is 'async'}}
55
55
// expected-note@-3{{did you mean to use 'try'?}}
56
56
// expected-note@-4{{did you mean to disable error propagation?}}
57
57
// expected-note@-5{{did you mean to handle error as optional value?}}
58
+
// FIXME(distributed): we lost this diagnosis in recent rework: calls to distributed instance method 'distHelloAsync()' from outside of its actor context are implicitly asynchronous
58
59
try distributed.distHelloAsync() // expected-error{{expression is 'async' but is not marked with 'await'}}
59
-
// expected-note@-1{{calls to distributed instance method 'distHelloAsync()' from outside of its actor context are implicitly asynchronous}}
60
+
// expected-note@-1{{call is 'async'}}
61
+
// FIXME(distributed): we lost this diagnosis in recent rework: calls to instance method 'distHelloAsync()' from outside of its actor context are implicitly asynchronous
60
62
await distributed.distHelloAsync() // expected-error{{call can throw but is not marked with 'try'}}
61
63
// expected-note@-1{{did you mean to use 'try'?}}
62
64
// expected-note@-2{{did you mean to disable error propagation?}}
distributed.distHelloAsyncThrows() // expected-error{{expression is 'async' but is not marked with 'await'}}
81
83
// expected-error@-1{{call can throw but is not marked with 'try'}}
82
-
// expected-note@-2{{calls to distributed instance method 'distHelloAsyncThrows()' from outside of its actor context are implicitly asynchronous}}
84
+
// expected-note@-2{{call is 'async'}}
83
85
// expected-note@-3{{did you mean to use 'try'?}}
84
86
// expected-note@-4{{did you mean to disable error propagation?}}
85
87
// expected-note@-5{{did you mean to handle error as optional value?}}
88
+
// FIXME(distributed): we lost this diagnosis in recent rework: {{calls to instance method 'distHelloAsyncThrows()' from outside of its actor context are implicitly asynchronous
86
89
try distributed.distHelloAsyncThrows() // expected-error{{expression is 'async' but is not marked with 'await'}}
87
-
// expected-note@-1{{calls to distributed instance method 'distHelloAsyncThrows()' from outside of its actor context are implicitly asynchronous}}
90
+
// expected-note@-1{{call is 'async'}}
91
+
// FIXME(distributed): we lost this diagnosis in recent rework: calls to instance method 'distHelloAsyncThrows()' from outside of its actor context are implicitly asynchronous
88
92
await distributed.distHelloAsyncThrows() // expected-error{{call can throw but is not marked with 'try'}}
89
93
// expected-note@-1{{did you mean to use 'try'?}}
90
94
// expected-note@-2{{did you mean to disable error propagation?}}
0 commit comments