Files
kotlin-fork/idea/testData/intentions/declarations/split/whenSubject.kt
T
2019-12-24 14:37:53 +07:00

13 lines
193 B
Kotlin
Vendored

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