mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
14 lines
248 B
Kotlin
Vendored
14 lines
248 B
Kotlin
Vendored
//ALLOW_AST_ACCESS
|
|
package test
|
|
|
|
import kotlin.reflect.KProperty
|
|
|
|
class A {
|
|
var a by MyProperty()
|
|
}
|
|
|
|
class MyProperty<T> {
|
|
operator fun getValue(t: T, p: KProperty<*>): Int = 42
|
|
operator fun setValue(t: T, p: KProperty<*>, i: Int) {}
|
|
}
|