13 lines
259 B
Kotlin
Vendored
13 lines
259 B
Kotlin
Vendored
import kotlin.reflect.KProperty
|
|
|
|
class X<T>(t: T) {
|
|
operator fun getValue(thisRef: C<T>, property: KProperty<*>): T = throw Exception()
|
|
}
|
|
|
|
class C<T> {
|
|
val property by <caret>
|
|
}
|
|
|
|
// EXIST: lazy
|
|
// EXIST: { itemText: "X", tailText: "(t: T) (<root>)" }
|