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