Convert 'simplify when' from intention to inspection
Related to KT-20492
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
// WITH_RUNTIME
|
||||
fun test(i: Int) {
|
||||
val x = <caret>when {
|
||||
i == 1 -> {
|
||||
println(1)
|
||||
1
|
||||
}
|
||||
false -> {
|
||||
println(2)
|
||||
2
|
||||
}
|
||||
true -> {
|
||||
println(3)
|
||||
3
|
||||
}
|
||||
else -> {
|
||||
println(4)
|
||||
4
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user