blob: 0886b42528e1f6a97ab866e011d4acb945aaaf28 [file] [log] [blame]
// RUN: %target-parse-verify-swift
class C {}
var c = C()
if c as C { // expected-error{{'C' is not convertible to 'Bool'}}
}
if ({1} as () -> Int) { // expected-error{{'() -> Int' is not convertible to 'Bool'}}
}