Files
kotlin-fork/compiler/testData/codegen/script/topLevelLocalDelegatedProperty.kts
T

13 lines
177 B
Kotlin
Vendored

import kotlin.reflect.KProperty
class Delegate {
operator fun getValue(t: Any?, p: KProperty<*>): Int = 3
}
val prop: Int by Delegate()
val x = prop
// expected: x: 3