Files
kotlin-fork/compiler/testData/codegen/box/when/noElseExhaustiveUnitExpected.kt
T

15 lines
132 B
Kotlin

enum class En {
A
B
}
fun box(): String {
val u: Unit = when(En.A) {
En.A -> {}
En.B -> {}
}
return "OK"
}