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:
Robert Widmann
2020-11-09 15:05:43 -08:00
parent b3843afc3e
commit 363b66a7ad
19 changed files with 63 additions and 46 deletions

View File

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