mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user