mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
14 lines
415 B
Swift
14 lines
415 B
Swift
// {"kind":"typecheck","signature":"(anonymous namespace)::TypePrinter::printArchetypeCommon(swift::Type, swift::GenericEnvironment*)","stackOverflow":true}
|
|
// RUN: not --crash %target-swift-frontend -typecheck %s
|
|
protocol a: Collection where Element == b.Element! {
|
|
associatedtype b: Collection
|
|
}
|
|
protocol c {
|
|
associatedtype d: a where d.b: a, d.Element == Self
|
|
}
|
|
func e () {
|
|
func f<e : c>() {
|
|
e.g
|
|
}
|
|
}
|