We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d77258 commit 3ce1156Copy full SHA for 3ce1156
test/stmt/errors.swift
@@ -239,7 +239,7 @@ func sr_11402_func1(_ x: SR_11402_P) {
239
final class SR_11402_Final {}
240
241
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}}
+ if let y = x as? SR_11402_Final { // expected-warning {{cast from 'SR_11402_P' to unrelated type 'SR_11402_Final' always fails}}
243
print(y)
244
}
245
0 commit comments