Files
kotlin-fork/idea/testData/quickfix/when/removeRedundantBranch.kt
T
2020-09-29 23:58:29 +09:00

9 lines
165 B
Kotlin
Vendored

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