Files
kotlin-fork/compiler/testData/diagnostics/tests/when/PropertyNotInitialized.fir.kt
T

16 lines
261 B
Kotlin
Vendored

// See KT-5113
enum class E {
A,
B
}
class Outer(e: E) {
private val prop: Int
init {
when(e ) {
// When is exhaustive, property is always initialized
E.A -> prop = 1
E.B -> prop = 2
}
}
}