// FIR_IDENTICAL // Type inference failed after smart cast interface A interface B : A fun foo(b: A) = b fun test(a: A) { if (a is Any) { // Error:(9, 9) Kotlin: Type inference failed: fun foo(b: A): kotlin.Unit // cannot be applied to (A) foo(a) } foo(a) // ok }