mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
18 lines
222 B
Swift
18 lines
222 B
Swift
// RUN: %target-swift-frontend %s -emit-ir
|
|
|
|
protocol X {
|
|
associatedtype R : Y
|
|
}
|
|
|
|
protocol Y {
|
|
associatedtype Q : X where Q.R == Self
|
|
}
|
|
|
|
struct B : Y {
|
|
typealias Q = L<B>
|
|
}
|
|
|
|
struct L<V : Y> : X {
|
|
typealias R = V
|
|
}
|