parent
5868ec6e3d
commit
6033be79b3
|
@ -2012,7 +2012,7 @@ def error_no_super_class : Error<
|
|||
def err_invalid_receiver_to_message : Error<
|
||||
"invalid receiver to message expression">;
|
||||
def err_invalid_receiver_to_message_super : Error<
|
||||
"'super' not valid when not in a method">;
|
||||
"'super' is only valid in a method body">;
|
||||
def warn_bad_receiver_type : Warning<
|
||||
"receiver type %0 is not 'id' or interface pointer, consider "
|
||||
"casting it to 'id'">;
|
||||
|
|
|
@ -37,7 +37,7 @@ void f0(int super) {
|
|||
expected-warning {{method '-m' not found (return type defaults to 'id')}}
|
||||
}
|
||||
void f1(int puper) {
|
||||
[super m]; // expected-error{{'super' not valid when not in a method}}
|
||||
[super m]; // expected-error{{'super' is only valid in a method body}}
|
||||
}
|
||||
|
||||
// radar 7400691
|
||||
|
|
Loading…
Reference in New Issue