"Split property declaration" intention: do not suggest in 'when' subject
#KT-35528 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
eab6864269
commit
1cdcef3b08
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user