blob: 7d8e39db9f0274f633487c7161c418bb5e435f93 [file]
// RUN_PIPELINE_TILL: BACKEND
interface A
interface B : A {
fun foo()
}
fun bar1(a: A) {
var b: B = a as B
<!DEBUG_INFO_SMARTCAST!>a<!>.foo()
b.foo()
}
fun id(b: B) = b
fun bar2(a: A) {
var b: B = id(a as B)
<!DEBUG_INFO_SMARTCAST!>a<!>.foo()
b.foo()
}
/* GENERATED_FIR_TAGS: asExpression, functionDeclaration, interfaceDeclaration, localProperty, propertyDeclaration,
smartcast */