mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Use the FullyQualified<Type> abstraction from the prior commit plus DescriptiveDeclKind to give a bit more information when issuing a missing member type diagnostic during type resolution.
9 lines
323 B
Swift
9 lines
323 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{{associated type 'A' can only be used with a concrete type or generic parameter base}}
|
|
}
|