File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,16 @@ func blender(_ peeler : () -> Void) {
203
203
await ( true ? wisk : { n in return } ) ( 1 )
204
204
}
205
205
206
+ actor Chain {
207
+ var next : Chain ?
208
+ }
209
+
210
+ func walkChain( chain : Chain ) async {
211
+ _ = chain. next? . next? . next? . next // expected-error 4 {{property access is 'async' but is not marked with 'await'}}
212
+ _ = ( await chain. next) ? . next? . next? . next // expected-error 3 {{property access is 'async' but is not marked with 'await'}}
213
+ _ = ( await chain. next? . next) ? . next? . next // expected-error 2 {{property access is 'async' but is not marked with 'await'}}
214
+ }
215
+
206
216
207
217
// want to make sure there is no note about implicitly async on this func.
208
218
@BananaActor func rice( ) async { }
You can’t perform that action at this time.
0 commit comments