blob: 32fb2129485409021e4198e9aa0cc495fd609825 [file] [log] [blame]
// RUN: %target-typecheck-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'}}
}