File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ func customHashable() {
61
61
enum InvalidCustomHashable {
62
62
case A, B
63
63
64
- var hashValue : String { return " " } // expected-error {{invalid redeclaration of synthesized witness for protocol requirement 'hashValue'}}
64
+ var hashValue : String { return " " } // expected-error {{invalid redeclaration of synthesized implementation for protocol requirement 'hashValue'}}
65
65
}
66
66
func == ( x: InvalidCustomHashable , y: InvalidCustomHashable ) -> String {
67
67
return " "
Original file line number Diff line number Diff line change @@ -850,8 +850,6 @@ struct WrapperWithProjectedValue<T> {
850
850
}
851
851
852
852
class TestInvalidRedeclaration1 {
853
- // expected-error@-1 {{invalid redeclaration of synthesized property '_i'}}
854
- // expected-error@-2 {{invalid redeclaration of synthesized property '$i'}}
855
853
856
854
@WrapperWithProjectedValue var i = 17
857
855
// expected-note@-1 {{'i' previously declared here}}
@@ -860,6 +858,8 @@ class TestInvalidRedeclaration1 {
860
858
861
859
@WrapperWithProjectedValue var i = 39
862
860
// expected-error@-1 {{invalid redeclaration of 'i'}}
861
+ // expected-error@-2 {{invalid redeclaration of synthesized property '$i'}}
862
+ // expected-error@-3 {{invalid redeclaration of synthesized property '_i'}}
863
863
}
864
864
865
865
// SR-12839
You can’t perform that action at this time.
0 commit comments