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

11 lines
170 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
enum class A { V }
fun box(): String {
val a: A = A.V
val b: Boolean
when (a) {
A.V -> b = true
}
return if (b) "OK" else "FAIL"
}