Sema: Kick off ActorIsolationRequest after checking conformances to avoid cycles

Fixes rdar://problem/80107082.
This commit is contained in:
Slava Pestov
2021-07-19 22:43:36 -04:00
parent 382809ad08
commit c3d3879637
4 changed files with 37 additions and 4 deletions

View File

@@ -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.