Improve diagnostic for use of unknown protocol member, make the base case

diagnostic strip of lvalue wrappers, make the base diagnostic mention the
member name, and add a radar number for a really terrible diagnostic that
needs to be solved in another way (12939553)


Swift SVN r3614
This commit is contained in:
Chris Lattner
2012-12-30 07:43:19 +00:00
parent c532e2487f
commit 41433f2e89
2 changed files with 14 additions and 4 deletions

View File

@@ -841,12 +841,12 @@ ERROR(use_undeclared_identifier,sema_tce,none,
ERROR(field_number_too_large,sema_tce,none,
"field number is too large for tuple", ())
ERROR(no_valid_dot_expression,sema_tce,none,
"base type %0 has no valid '.' expression for this field", (Type))
//ERROR(no_valid_dot_expression,sema_tce,none,
// "base type %0 has no member named %1", (Type, Identifier))
"base type %0 has no member named %1", (Type, Identifier))
ERROR(no_member_of_tuple,sema_tce,none,
"tuple type %0 has no member named %1", (Type, Identifier))
ERROR(no_member_of_protocol,sema_tce,none,
"protocol %0 has no member named %1", (Type, Identifier))
ERROR(no_member_of_module,sema_tce,none,
"module %0 has no member named %1", (Identifier, Identifier))
ERROR(no_member_of_metatype,sema_tce,none,