Files
swift-mirror/validation-test/compiler_crashers_fixed/0120-rdar34184392.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

32 lines
420 B
Swift

// RUN: not %target-swift-frontend %s -typecheck
protocol P {
associatedtype A1 : Q where A1.A2 == Self
var a1: A1? { get set }
func start()
}
protocol Q {
associatedtype A2 : P where A2.A1 == Self
func didStart(transport: A2)
}
class C<D> : P
where D : Q, D.A2 == Self
{
typealias A1 = D
var a1: D? = nil
}
class C2<D> : P
where D : Q, D.A2 == C2<D>
{
typealias A1 = D
var a1: D? = nil
}