Files
kotlin-fork/compiler/testData/codegen/box/controlStructures/kt2147.kt
T
2019-11-19 11:00:09 +03:00

11 lines
163 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class Foo {
fun isOk() = true
}
fun box(): String {
val foo: Foo? = Foo()
if (foo?.isOk()!!) return "OK"
return "fail"
}