blob: deebb589c4dd9e1f792642fadbbc6158fabb78de [file]
// RUN_PIPELINE_TILL: CODEGEN
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 */