Skip to content

Commit 992a9d3

Browse files
committed
remove warning test case that doesn't actually compile
1 parent c3e74e0 commit 992a9d3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/ClangImporter/nullability.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ func testSomeClass(_ sc: SomeClass, osc: SomeClass?) {
66
let ao1: Any = sc.methodA(osc)
77
_ = ao1
88
if sc.methodA(osc) == nil { } // expected-warning {{comparing non-optional value of type 'Any' to 'nil' always returns false}}
9-
if sc.methodA(osc) == Optional.none { } // expected-warning {{comparing non-optional value of type 'Any' to 'Optional.none' always returns false}}
109

1110
let ao2: Any = sc.methodB(nil)
1211
_ = ao2

0 commit comments

Comments
 (0)