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