Files
kotlin-fork/compiler/testData/cfg/declarations/local/localDelegatedVal.kt
T

11 lines
181 B
Kotlin
Vendored

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