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