Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0159-rdar40009245.swift
Robert Widmann 363b66a7ad Fully Qualify the Parent Type When Diagnosing Missing Member Types
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.
2020-11-09 17:10:18 -08:00

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}}
}