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

12 lines
223 B
Kotlin
Vendored

// WITH_STDLIB
// CHECK_BYTECODE_LISTING
// FIR_IDENTICAL
class C {
operator fun getValue(thisRef: Any?, property: Any?) =
if (thisRef == this) "OK" else "Failed"
val s: String by this
}
fun box() = C().s