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

11 lines
175 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_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"
}