Files
kotlin-fork/compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesProperty.kts
T
Ilya Chernikov 02e2438d37 K2 Scripting: fix script this receiver handling in IR
also fix accessor lowering
2023-07-05 19:46:04 +00:00

12 lines
171 B
Kotlin
Vendored

// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
// expected: rv: abc
// KT-19423
val used = "abc"
class User {
val property = used
}
val rv = User().property