Files
kotlin-fork/idea/testData/quickfix/migration/commasInWhenWithoutArgument/commasInConditionWithNoArguments.kt
T
2015-11-25 15:39:23 +03:00

9 lines
241 B
Kotlin
Vendored

// "Replace ',' with '||' in when" "true"
fun test(i: Int, j: Int) {
var b = false
when {
i > 0<caret>, j > 0 -> { /* some code 1 */ }
i < 0, j < 0 -> { /* some code 2 */ }
else -> { /* other code */ }
}
}