File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
test/Concurrency/toplevel Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1- // RUN: not %target-swift-frontend -enable-experimental-async-top-level -swift-version 6 -typecheck %s %S/Inputs/foo.swift 2>&1 | %FileCheck %s --check-prefixes='Swift6-CHECK,CHECK'
2- // RUN: not %target-swift-frontend -enable-experimental-async-top-level -swift-version 5 -typecheck %s %S/Inputs/foo.swift 2>&1 | %FileCheck %s --check-prefixes='Swift5-CHECK,CHECK'
1+ // RUN: not %target-swift-frontend -enable-experimental-async-top-level -diagnostic-style=llvm - swift-version 6 -typecheck %s %S/Inputs/foo.swift 2>&1 | %FileCheck %s --check-prefixes='Swift6-CHECK,CHECK'
2+ // RUN: not %target-swift-frontend -enable-experimental-async-top-level -diagnostic-style=llvm - swift-version 5 -typecheck %s %S/Inputs/foo.swift 2>&1 | %FileCheck %s --check-prefixes='Swift5-CHECK,CHECK'
33
44var a = 10
55
@@ -18,8 +18,6 @@ func nonIsolatedSynchronous() {
1818
1919func nonIsolatedAsync( ) async {
2020 print ( a)
21- // CHECK: expression is 'async' but is not marked with 'await'
22- // CHECK: property access is 'async'
2321}
2422
2523await nonIsolatedAsync ( )
You can’t perform that action at this time.
0 commit comments