02e2438d37
also fix accessor lowering
19 lines
220 B
Kotlin
Vendored
19 lines
220 B
Kotlin
Vendored
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
|
|
// IGNORE_BACKEND: JVM
|
|
|
|
// expected: rv: 42
|
|
|
|
fun foo() = B().bar()
|
|
|
|
val life = 42
|
|
|
|
class A {
|
|
val x = "$life"
|
|
}
|
|
|
|
class B {
|
|
fun bar() = A().x
|
|
}
|
|
|
|
val rv = foo()
|