mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
(cherry picked from commit 3ac9787122b4ed1f3654d9bb6e8ae62331c6692b) GitOrigin-RevId: 6325d3b5357d637c9d262ea01dd09754cfe0cb17
12 lines
326 B
Kotlin
12 lines
326 B
Kotlin
// IGNORE_K1
|
|
// "Replace '&&' with 'if'" "false"
|
|
// WITH_STDLIB
|
|
// K2_AFTER_ERROR: The feature "when guards" is only available since language version 2.2
|
|
|
|
fun test(a: Any) {
|
|
when (a) {
|
|
is Int if a % 2<caret> == 0 -> {}
|
|
}
|
|
}
|
|
|
|
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ReplaceAndWithWhenGuardFix |