Sign in
fuchsia
/
third_party
/
swift
/
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-03-05-a
/
.
/
test
/
Constraints
/
invalid_logicvalue_coercion.swift
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'}}
}