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

21 lines
224 B
Kotlin
Vendored

package c
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();
}
}
}
fun Any?.bar() {}