Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0120-rdar34184392.swift
Doug Gregor 0f30f5e7de [AST] Don't try to compute substitutions for a missing generic signature.
Eliminates the crash in rdar://problem/34184392, but we still don't handle
this pattern.
2017-10-02 13:30:43 -07: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
}