5824b9c59c
27 failing tests are muted
19 lines
246 B
Kotlin
Vendored
19 lines
246 B
Kotlin
Vendored
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
|
|
// IGNORE_BACKEND_K2: JVM_IR
|
|
|
|
// 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()
|