Files
Toshiaki Kameyama 044949f441 "Split property declaration" intention: do not suggest in 'when' subject
#KT-35528 Fixed

GitOrigin-RevId: b0731e67cf3337cb34e1860b2593fb0e0be2c605
2019-12-24 10:37:53 +03:00

13 lines
193 B
Kotlin

// IS_APPLICABLE: false
enum class Type {
HYDRO,
PYRO
}
fun select(t: Type): Int {
return when (<caret>val i = t.ordinal) {
0 -> 1
1 -> 42
else -> i
}
}