mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
17 lines
663 B
Plaintext
17 lines
663 B
Plaintext
// "Replace ',' with '||' in when" "true"
|
|
// ERROR: Expected condition of type Boolean
|
|
// ERROR: Expected condition of type Boolean
|
|
fun test(i: Int, j: Int) {
|
|
var b = false
|
|
when {
|
|
i == 0 -> { /* code 1 */ }
|
|
i > 0 || j > 0 -> { /* code 2 */ }
|
|
j == 0 -> { /* code 3 */ }
|
|
i < 0 || j < 0 || j > i -> { /* code 4 */ }
|
|
in 1..2 -> { /* code 5 */ }
|
|
is Int -> { /* code 6 */ }
|
|
else -> { /* other code */ }
|
|
}
|
|
}
|
|
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.CommaInWhenConditionWithoutArgumentFix
|
|
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.CommaInWhenConditionWithoutArgumentFix |