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

13 lines
164 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
enum class En {
A,
B
}
fun box(): String {
when(En.A) {
En.A -> "s1"
En.B -> "s2"
}
return "OK"
}