blob: e7c29c9fb240b24193d6e60f591b12429b9e9134 [file]
// RUN_PIPELINE_TILL: BACKEND
// KT-2825 DataFlowInfo is not retained after assignment
interface A
interface B : A {
fun foo()
}
fun baz(b: B) = b
fun bar1(a: A) {
val b = a as B
a.foo()
b.foo()
}
fun bar2(a: A) {
val b = baz(a as B)
a.foo()
b.foo()
}
/* GENERATED_FIR_TAGS: asExpression, functionDeclaration, interfaceDeclaration, localProperty, propertyDeclaration,
smartcast */