Files
kotlin-fork/compiler/testData/codegen/box/unit/nullableUnitInWhen2.kt
T

13 lines
129 B
Kotlin
Vendored

fun foo() {}
fun box(): String {
when ("A") {
"B" -> null
else -> foo()
}
foo()
return "OK"
}