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