mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
9 lines
337 B
Swift
9 lines
337 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
protocol P {
|
|
associatedtype A : P where A.X == Self
|
|
// expected-error@-1{{'X' is not a member type of type 'Self.A'}}
|
|
associatedtype X : P where P.A == Self
|
|
// expected-error@-1{{cannot access associated type 'A' from 'P'; use a concrete type or generic parameter base instead}}
|
|
}
|