Files
Nikolay Lunyak 88ff93df7f [FIR] Check is for impossibility
^KT-58203 Fixed
^KT-62646
2024-03-08 15:37:44 +00:00

17 lines
178 B
Kotlin
Vendored

interface B {
fun bar() {}
}
class C() {
fun bar() {
}
}
fun test(a : Any?) {
if (a is B) {
if (<!USELESS_IS_CHECK!>a is C<!>) {
a.bar();
}
}
}