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

12 lines
226 B
Kotlin
Vendored

// CHECK_BYTECODE_LISTING
// FIR_IDENTICAL
operator fun Any?.getValue(thisRef: Any?, property: Any?) =
if (this == a && thisRef == null) "OK" else "Failed"
const val a = "TEXT"
val s: String by a
fun box(): String = s