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

10 lines
196 B
Kotlin
Vendored

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