mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
A parse-only option is needed for parse performance tracking and the current option also includes semantic analysis.
15 lines
212 B
Swift
15 lines
212 B
Swift
// RUN: %target-swift-frontend %s -typecheck
|
|
|
|
public protocol P1 {
|
|
associatedtype A1
|
|
}
|
|
|
|
public protocol P2 : P1 {
|
|
associatedtype A2 : P1
|
|
var prop1: A2 { get }
|
|
}
|
|
|
|
extension P2 {
|
|
public typealias A1 = A2
|
|
}
|