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