Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/Condition.kt
T
2015-04-29 16:33:24 +02:00

8 lines
204 B
Kotlin
Vendored

// !CHECK_TYPE
fun foo(x: Int?): Boolean {
val result = ((x!! == 0) && (checkSubtype<Int>(<!DEBUG_INFO_SMARTCAST!>x<!>) == 0))
checkSubtype<Int>(<!DEBUG_INFO_SMARTCAST!>x<!>)
return result
}