Files
openide/plugins/kotlin/idea/tests/testData/quickfix/replaceAndWithWhenGuard/alreadyUsingGuard.kt
Nikita Bobko d2dd89260d [kotlin] Fix testData after fixes in kotlin repo
(cherry picked from commit 3ac9787122b4ed1f3654d9bb6e8ae62331c6692b)

GitOrigin-RevId: 6325d3b5357d637c9d262ea01dd09754cfe0cb17
2025-05-13 06:23:47 +00:00

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