Skip to content

Commit 784d193

Browse files
committed
Fix another test.
I tried to port this behavior to another test that validated the behavior using RBI. When I tried to do so I ran into the issue that the behavior in this test only reproduces in targeted mode not in complete mode which is required for rbi to run.
1 parent 3b8e384 commit 784d193

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

test/ClangImporter/objc_async.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ class BarFrame: PictureFrame {
298298
@available(SwiftStdlib 5.5, *)
299299
@SomeGlobalActor
300300
class BazFrame: NotIsolatedPictureFrame {
301-
// expected-note@-1 2 {{class 'BazFrame' does not conform to the 'Sendable' protocol}}
302301
init() {
303302
super.init(size: 0)
304303
}
@@ -322,12 +321,10 @@ func check() async {
322321
_ = await BarFrame()
323322
_ = await FooFrame()
324323
_ = await BazFrame()
325-
// expected-warning@-1 {{non-sendable result type 'BazFrame' cannot be sent from global actor 'SomeGlobalActor'-isolated context in call to initializer 'init()'; this is an error in the Swift 6 language mode}}
326324

327325
_ = await BarFrame(size: 0)
328326
_ = await FooFrame(size: 0)
329327
_ = await BazFrame(size: 0)
330-
// expected-warning@-1 {{non-sendable result type 'BazFrame' cannot be sent from global actor 'SomeGlobalActor'-isolated context in call to initializer 'init(size:)'; this is an error in the Swift 6 language mode}}
331328
}
332329

333330
@available(SwiftStdlib 5.5, *)

0 commit comments

Comments
 (0)