mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Sema: Kick off ActorIsolationRequest after checking conformances to avoid cycles
Fixes rdar://problem/80107082.
This commit is contained in:
@@ -68,6 +68,18 @@ public class C7 { }
|
||||
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
|
||||
extension C7: UnsafeSendable { }
|
||||
|
||||
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
|
||||
public protocol P2 {
|
||||
@SomeGlobalActor func method()
|
||||
}
|
||||
|
||||
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
|
||||
// CHECK: class {{(Test.)?}}C8 : {{(Test.)?}}P2 {
|
||||
public class C8 : P2 {
|
||||
// CHECK: @{{(Test.)?}}SomeGlobalActor public func method()
|
||||
public func method() {}
|
||||
}
|
||||
|
||||
// FIXME: Work around a bug where module printing depends on the "synthesized"
|
||||
// bit in conformances which is not serialized and not present in the textual
|
||||
// form.
|
||||
|
||||
Reference in New Issue
Block a user