// IGNORE_BACKEND: JS_IR, JS_IR_ES6, NATIVE, WASM
// JVM_ABI_K1_K2_DIFF: KT-63960, KT-63963

// expected: rv: 42

val x = 6
val y = 7

fun foo() = x

class A {
    fun bar() = foo() * y
}

val rv = A().bar()
