Files
kotlin-fork/idea/testData/quickfix/when/removeRedundantBranch.kt
T
2021-05-11 21:42:45 +02:00

11 lines
183 B
Kotlin
Vendored

// "Remove branch" "true"
fun test(x: Int): String {
return when (x) {
1 -> "1"
2 -> "2"
<caret>null -> "null"
else -> ""
}
}
/* IGNORE_FIR */