"Split property declaration" intention: do not suggest in 'when' subject

#KT-35528 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-12-19 00:41:59 +09:00
committed by Dmitry Gridin
parent eab6864269
commit 1cdcef3b08
3 changed files with 21 additions and 1 deletions
@@ -0,0 +1,13 @@
// 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
}
}