Files
swift-mirror/validation-test/compiler_crashers_fixed/0159-rdar39931339.swift
Hamish Knight 4e811c3a88 [test] Merge crasher directories
There is no longer much of a good reason to keep these separate,
merge them.
2025-10-18 12:51:30 +01:00

40 lines
504 B
Swift

// RUN: %target-typecheck-verify-swift
protocol P0 {
associatedtype A
}
protocol P1 {
associatedtype B : P3 = S0<S2>
associatedtype C = ()
}
protocol P2 {
associatedtype D : P1
associatedtype E : P3 = S0<S2>
}
protocol P3 : P0 where A : P2 {}
struct S0<T> : P0 {
typealias A = T
}
extension S0 : P3 where T : P2 {}
struct S2 : P2 {
struct D : P1 {
let value: S2
}
}
extension P1 where C : P2 {
typealias B = C.E
}
extension P3 {
func foo() {
_ = A.D.B.self
}
}