Skip to content

Commit 238446f

Browse files
authored
[Test] Update diagnostic text
Seems like we produce worse diagnostic on 5.1 branch than master
1 parent 1eebe58 commit 238446f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/decl/var/property_wrappers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1143,5 +1143,5 @@ struct SR_11381_W<T> {
11431143
}
11441144

11451145
struct SR_11381_S {
1146-
@SR_11381_W var foo: Int = nil // expected-error {{'nil' is not compatible with expected argument type 'Int'}}
1146+
@SR_11381_W var foo: Int = nil // expected-error {{'nil' requires a contextual type}}
11471147
}

0 commit comments

Comments
 (0)