Skip to content

Commit 2c64c47

Browse files
committed
[Test] Update existing tests
1 parent cc61a3b commit 2c64c47

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/Sema/enum_conformance_synthesis.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func customHashable() {
6161
enum InvalidCustomHashable {
6262
case A, B
6363

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'}}
6565
}
6666
func ==(x: InvalidCustomHashable, y: InvalidCustomHashable) -> String {
6767
return ""

test/decl/var/property_wrappers.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,8 +850,6 @@ struct WrapperWithProjectedValue<T> {
850850
}
851851

852852
class TestInvalidRedeclaration1 {
853-
// expected-error@-1 {{invalid redeclaration of synthesized property '_i'}}
854-
// expected-error@-2 {{invalid redeclaration of synthesized property '$i'}}
855853

856854
@WrapperWithProjectedValue var i = 17
857855
// expected-note@-1 {{'i' previously declared here}}
@@ -860,6 +858,8 @@ class TestInvalidRedeclaration1 {
860858

861859
@WrapperWithProjectedValue var i = 39
862860
// 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'}}
863863
}
864864

865865
// SR-12839

0 commit comments

Comments
 (0)