Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/local/kt21085.kt
T

13 lines
248 B
Kotlin
Vendored

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()
}