cb5e451e05
for regular classes only. Reimplementing the main behavior of the old BE and implementing few cases on top of it. #KT-19423 fixed
15 lines
170 B
Kotlin
Vendored
15 lines
170 B
Kotlin
Vendored
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
|
|
|
|
// expected: rv: 42
|
|
|
|
val x = 6
|
|
val y = 7
|
|
|
|
fun foo() = x
|
|
|
|
class A {
|
|
fun bar() = foo() * y
|
|
}
|
|
|
|
val rv = A().bar()
|