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 97b51d2 commit 4a90f72Copy full SHA for 4a90f72
test/Constraints/casts.swift
@@ -746,7 +746,7 @@ do {
746
do {
747
func x(a: Any) {
748
_ = a is a // expected-error {{type-casting operator expects a type on its right-hand side (got: 'a')}}
749
- _ = a as T // expected-error {{type-casting operator expects a type on its right-hand side (got: 'T')}}
+ _ = a as a // expected-error {{type-casting operator expects a type on its right-hand side (got: 'a')}}
750
_ = a is String // OK
751
}
752
0 commit comments