Files
kotlin-fork/compiler/testData/codegen/box/when/noElseExhaustiveUnitExpected.kt
T
2018-06-09 19:15:38 +03:00

16 lines
158 B
Kotlin
Vendored

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