@@ -206,13 +206,17 @@ public struct TestInStruct {
206
206
// Make sure that we emit compiler(>= 5.3) when emitting the suppressing check
207
207
// to make sure we do not fail if we fail to parse sending in the if block.
208
208
209
- // CHECK: #if compiler(>=5.3) && $SendingArgsAndResults // Suppression Count: 24
209
+ // CHECK: #if compiler(>=5.3) && $NonescapableTypes // Suppression Count: 24
210
210
// CHECK-NEXT: @inlinable public func withCheckedContinuation<T>(isolation: isolated (any _Concurrency.Actor)? = #isolation, function: Swift.String = #function, _ body: (_Concurrency.CheckedContinuation<T, Swift.Never>) -> Swift.Void) async -> sending T {
211
- // CHECK-NEXT: fatalError()
211
+ // CHECK-NEXT: fatalError()
212
+ // CHECK-NEXT: }
213
+ // CHECK-NEXT: #elseif compiler(>=5.3) && $SendingArgsAndResults // Suppression Count: 25
214
+ // CHECK-NEXT: @inlinable public func withCheckedContinuation<T>(isolation: isolated (any _Concurrency.Actor)? = #isolation, function: Swift.String = #function, _ body: (_Concurrency.CheckedContinuation<T, Swift.Never>) -> Swift.Void) async -> sending T {
215
+ // CHECK-NEXT: fatalError()
212
216
// CHECK-NEXT: }
213
217
// CHECK-NEXT: #else
214
218
// CHECK-NEXT: @inlinable public func withCheckedContinuation<T>(isolation: isolated (any _Concurrency.Actor)? = #isolation, function: Swift.String = #function, _ body: (_Concurrency.CheckedContinuation<T, Swift.Never>) -> Swift.Void) async -> T {
215
- // CHECK-NEXT: fatalError()
219
+ // CHECK-NEXT: fatalError()
216
220
// CHECK-NEXT: }
217
221
// CHECK-NEXT: #endif
218
222
@inlinable public func withCheckedContinuation< T> (
@@ -223,14 +227,14 @@ public struct TestInStruct {
223
227
fatalError ( )
224
228
}
225
229
226
- // CHECK-LABEL: #if compiler(>=5.3) && $SendingArgsAndResults // Suppression Count: 25
230
+ // CHECK-LABEL: #if compiler(>=5.3) && $SendingArgsAndResults // Suppression Count: 26
227
231
// CHECK-NEXT: public var publicGlobal: (sending test.NonSendableKlass) -> ()
228
232
// CHECK-NEXT: #else
229
233
// CHECK-NEXT: public var publicGlobal: (__owned test.NonSendableKlass) -> ()
230
234
// CHECK-NEXT: #endif
231
235
public var publicGlobal : ( sending NonSendableKlass) -> ( ) = { x in fatalError ( ) }
232
236
233
- // CHECK-LABEL: #if compiler(>=5.3) && $SendingArgsAndResults // Suppression Count: 26
237
+ // CHECK-LABEL: #if compiler(>=5.3) && $SendingArgsAndResults // Suppression Count: 27
234
238
// CHECK-NEXT: @usableFromInline
235
239
// CHECK-NEXT: internal var usableFromInlineGlobal: (sending test.NonSendableKlass) -> ()
236
240
// CHECK-NEXT: #else
0 commit comments