Files
kotlin-fork/idea/idea-completion/testData/smart/propertyDelegate/ExtensionSubstitution1.kt
T
2016-04-05 19:32:55 +03:00

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>" }