blob: d20d4561480f6da003b0eefd7a46a810117b077e [file]
// IGNORE_BACKEND: JS_IR, JS_IR_ES6, NATIVE, WASM
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963
// expected: rv: 42
fun foo() = B.bar()
val life = 42
interface A {
fun bar(): Int
}
val B = object : A {
override fun bar() = life
}
val rv = foo()