Files
2024-10-02 12:27:49 +00:00

13 lines
503 B
Kotlin

// "Replace ',' with '||' in when" "true"
fun test(i: Int, j: Int) {
var b = false
when {
i == 0 -> { /* code 1 */ }
i > 0<caret>, j > 0 -> { /* code 2 */ }
j == 0 -> { /* code 3 */ }
i < 0, j < 0, j > i -> { /* code 4 */ }
else -> { /* other code */ }
}
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.CommaInWhenConditionWithoutArgumentFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.CommaInWhenConditionWithoutArgumentFix