16 lines
396 B
Kotlin
Vendored
16 lines
396 B
Kotlin
Vendored
import kotlin.reflect.KProperty
|
|
|
|
class Property<TOwner, TValue>
|
|
|
|
operator fun <TValue, TOwner> Property<TOwner, TValue>.getValue(thisRef: TOwner, property: KProperty<*>): TValue {
|
|
throw Exception()
|
|
}
|
|
|
|
fun<TOwner, TValue> createProperty(): Property<TOwner, TValue> = Property()
|
|
|
|
class C {
|
|
val v by create<caret>
|
|
}
|
|
|
|
// EXIST: { itemText: "createProperty", typeText: "Property<C, TValue>" }
|