mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
14 lines
357 B
Plaintext
14 lines
357 B
Plaintext
// "Remove useless is check" "true"
|
|
|
|
interface Base
|
|
interface Derived: Base
|
|
|
|
fun foo(bar: Base):Int {
|
|
return when {
|
|
bar is Derived -> 0
|
|
true -> 42
|
|
else -> 1
|
|
}
|
|
}
|
|
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.RemoveUselessIsCheckFix
|
|
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.RemoveUselessIsCheckFix |