blob: 90d84d9ae7dc3af6f0b748dc1096ace7e9e49d6b [file]
// RUN_PIPELINE_TILL: BACKEND
// SKIP_TXT
// FIR_IDENTICAL
abstract class A {
open public fun foo(x: Any) {}
open public fun foo(x: String) {}
}
class B : A() {
override fun foo(x: Any) {
super.foo(x)
}
override fun foo(x: String) {
super.foo(x)
}
}
fun bar(a: A) {
if (a is B) {
a.foo("")
}
}
/* GENERATED_FIR_TAGS: classDeclaration, functionDeclaration, ifExpression, isExpression, override, smartcast,
stringLiteral, superExpression */