Files
kotlin/compiler/testData/codegen/box/when/exhaustiveWhenInitialization.kt

10 lines
145 B
Kotlin
Vendored

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"
}