// RUN: %target-swift-frontend -typecheck %s // https://github.com/apple/swift/issues/53012 protocol P1: class { associatedtype P1P1: P1 associatedtype P1AnyP2: AnyP2 var anyP2: P1AnyP2? { get set } } protocol P2 { associatedtype P2P1: P1 } final class AnyP2: P2 { typealias P2P1 = AP2P1 }