You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: test/ClangImporter/objc_async.swift
-3Lines changed: 0 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -298,7 +298,6 @@ class BarFrame: PictureFrame {
298
298
@available(SwiftStdlib 5.5,*)
299
299
@SomeGlobalActor
300
300
classBazFrame:NotIsolatedPictureFrame{
301
-
// expected-note@-1 2 {{class 'BazFrame' does not conform to the 'Sendable' protocol}}
302
301
init(){
303
302
super.init(size:0)
304
303
}
@@ -322,12 +321,10 @@ func check() async {
322
321
_ =awaitBarFrame()
323
322
_ =awaitFooFrame()
324
323
_ =awaitBazFrame()
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}}
326
324
327
325
_ =awaitBarFrame(size:0)
328
326
_ =awaitFooFrame(size:0)
329
327
_ =awaitBazFrame(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}}
0 commit comments