Skip to content

Commit 3ce1156

Browse files
committed
[Test] Fix diagnostic expectation (warning, not error)
1 parent 5d77258 commit 3ce1156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/stmt/errors.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ func sr_11402_func1(_ x: SR_11402_P) {
239239
final class SR_11402_Final {}
240240

241241
func sr_11402_func2(_ x: SR_11402_P) {
242-
if let y = x as? SR_11402_Final { // expected-error {{cast from 'SR_11402_P' to unrelated type 'SR_11402_Final' always fails}}
242+
if let y = x as? SR_11402_Final { // expected-warning {{cast from 'SR_11402_P' to unrelated type 'SR_11402_Final' always fails}}
243243
print(y)
244244
}
245245
}

0 commit comments

Comments
 (0)