mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We need to make sure they don't end up as "concrete" equivalence classes, because they behave more like unresolved ones. Fixes rdar://problem/40009245.
8 lines
253 B
Swift
8 lines
253 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
protocol P {
|
|
associatedtype A : P where A.X == Self
|
|
associatedtype X : P where P.A == Self
|
|
// expected-error@-1{{associated type 'A' can only be used with a concrete type or generic parameter base}}
|
|
}
|