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

11 lines
206 B
Kotlin
Vendored

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