@@ -64,7 +64,7 @@ func makeAsyncClosuresSynchronously(bop: inout Bop) -> (() async -> Void) {
6464 bop. foo ( ) // expected-warning@:9{{'foo' is unavailable from asynchronous contexts}}
6565 bop. muppet ( ) // expected-warning@:9{{'muppet' is unavailable from asynchronous contexts}}
6666 unavailableFunction ( ) // expected-warning@:5{{'unavailableFunction' is unavailable from asynchronous contexts}}
67- noasyncFunction ( ) // expected-error @:5{{'noasyncFunction' is unavailable from asynchronous contexts}}
67+ noasyncFunction ( ) // expected-warning @:5{{'noasyncFunction' is unavailable from asynchronous contexts}}
6868
6969 // Can use them from synchronous closures
7070 _ = { Bop ( ) } ( )
@@ -89,7 +89,7 @@ func asyncFunc() async { // expected-error{{asynchronous global function 'asyncF
8989 bop. foo ( ) // expected-warning@:7{{'foo' is unavailable from asynchronous contexts}}
9090 bop. muppet ( ) // expected-warning@:7{{'muppet' is unavailable from asynchronous contexts}}
9191 unavailableFunction ( ) // expected-warning@:3{{'unavailableFunction' is unavailable from asynchronous contexts}}
92- noasyncFunction ( ) // expected-error @:3{{'noasyncFunction' is unavailable from asynchronous contexts}}
92+ noasyncFunction ( ) // expected-warning @:3{{'noasyncFunction' is unavailable from asynchronous contexts}}
9393
9494 // Unavailable global function
9595 foo ( ) // expected-warning{{'foo' is unavailable from asynchronous contexts}}
@@ -113,7 +113,7 @@ func asyncFunc() async { // expected-error{{asynchronous global function 'asyncF
113113 bop. muppet ( ) // expected-warning@:11{{'muppet' is unavailable from asynchronous contexts}}
114114 _ = Bop ( ) // expected-warning@:11{{'init' is unavailable from asynchronous contexts; Use Bop(a: Int) instead}}
115115 unavailableFunction ( ) // expected-warning@:7{{'unavailableFunction' is unavailable from asynchronous contexts}}
116- noasyncFunction ( ) // expected-error @:7{{'noasyncFunction' is unavailable from asynchronous contexts}}
116+ noasyncFunction ( ) // expected-warning @:7{{'noasyncFunction' is unavailable from asynchronous contexts}}
117117 }
118118 }
119119
@@ -123,7 +123,7 @@ func asyncFunc() async { // expected-error{{asynchronous global function 'asyncF
123123 bop. foo ( ) // expected-warning@:9{{'foo' is unavailable from asynchronous contexts}}
124124 bop. muppet ( ) // expected-warning@:9{{'muppet' is unavailable from asynchronous contexts}}
125125 unavailableFunction ( ) // expected-warning@:5{{'unavailableFunction' is unavailable from asynchronous contexts}}
126- noasyncFunction ( ) // expected-error @:5{{'noasyncFunction' is unavailable from asynchronous contexts}}
126+ noasyncFunction ( ) // expected-warning @:5{{'noasyncFunction' is unavailable from asynchronous contexts}}
127127
128128 _ = {
129129 foo ( )
0 commit comments