mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
11 lines
194 B
Kotlin
11 lines
194 B
Kotlin
//ALLOW_AST_ACCESS
|
|
package test
|
|
|
|
class A {
|
|
var a by MyProperty()
|
|
}
|
|
|
|
class MyProperty<T> {
|
|
fun get(t: T, p: PropertyMetadata): Int = 42
|
|
fun set(t: T, p: PropertyMetadata, i: Int) {}
|
|
} |