mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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.
This commit is contained in:
@@ -10,5 +10,5 @@
|
||||
|
||||
// Issue found by https://github.com/julasamer (julasamer)
|
||||
|
||||
struct c<d, e: b> where d.c == e { // expected-error {{cannot find type 'b' in scope}} expected-error {{'c' is not a member type of 'd'}}
|
||||
struct c<d, e: b> where d.c == e { // expected-error {{cannot find type 'b' in scope}} expected-error {{'c' is not a member type of type 'd'}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user