@@ -64,7 +64,7 @@ func makeAsyncClosuresSynchronously(bop: inout Bop) -> (() async -> Void) {
64
64
bop. foo ( ) // expected-warning@:9{{'foo' is unavailable from asynchronous contexts}}
65
65
bop. muppet ( ) // expected-warning@:9{{'muppet' is unavailable from asynchronous contexts}}
66
66
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}}
68
68
69
69
// Can use them from synchronous closures
70
70
_ = { Bop ( ) } ( )
@@ -89,7 +89,7 @@ func asyncFunc() async { // expected-error{{asynchronous global function 'asyncF
89
89
bop. foo ( ) // expected-warning@:7{{'foo' is unavailable from asynchronous contexts}}
90
90
bop. muppet ( ) // expected-warning@:7{{'muppet' is unavailable from asynchronous contexts}}
91
91
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}}
93
93
94
94
// Unavailable global function
95
95
foo ( ) // expected-warning{{'foo' is unavailable from asynchronous contexts}}
@@ -113,7 +113,7 @@ func asyncFunc() async { // expected-error{{asynchronous global function 'asyncF
113
113
bop. muppet ( ) // expected-warning@:11{{'muppet' is unavailable from asynchronous contexts}}
114
114
_ = Bop ( ) // expected-warning@:11{{'init' is unavailable from asynchronous contexts; Use Bop(a: Int) instead}}
115
115
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}}
117
117
}
118
118
}
119
119
@@ -123,7 +123,7 @@ func asyncFunc() async { // expected-error{{asynchronous global function 'asyncF
123
123
bop. foo ( ) // expected-warning@:9{{'foo' is unavailable from asynchronous contexts}}
124
124
bop. muppet ( ) // expected-warning@:9{{'muppet' is unavailable from asynchronous contexts}}
125
125
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}}
127
127
128
128
_ = {
129
129
foo ( )
0 commit comments