Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/local/kt21085.kt
T
2019-11-19 11:00:09 +03:00

15 lines
279 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class Delegate(val value: String) {
operator fun getValue(thisRef: Any?, kProperty: Any?) = value
}
fun box(): String {
val x by Delegate("O")
class Local(val y: String) {
val fn = { x + y }
}
return Local("K").fn()
}