Files
kotlin-fork/compiler/testData/codegen/box/boxingOptimization/kt5588.kt
T
2019-12-09 17:24:26 +03:00

12 lines
191 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
fun box() : String {
val s = "notA"
val id = when (s) {
"a" -> 1
else -> null
}
if (id == null) return "OK"
return "fail"
}