mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
14 lines
238 B
Swift
14 lines
238 B
Swift
// RUN: %target-swift-frontend -emit-silgen %s -disable-availability-checking
|
|
|
|
protocol P {
|
|
associatedtype A: P
|
|
}
|
|
|
|
struct S: P {
|
|
typealias A = S
|
|
}
|
|
|
|
func f<each T: P>(_: repeat each T) -> (repeat (each T).A.A.A.A) {}
|
|
|
|
f(S(), S(), S())
|