Files
kotlin-fork/compiler/testData/codegen/script/scriptInstanceCapturing/nestedInnerClassCapturesProperty.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

16 lines
251 B
Kotlin
Vendored

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