Show substituted type arguments for type instantiation items
This commit is contained in:
+1
-1
@@ -13,4 +13,4 @@ class C {
|
||||
}
|
||||
|
||||
// EXIST: { itemText: "createProperty", typeText: "Property<C, TValue>" }
|
||||
// EXIST: Property
|
||||
// EXIST: { itemText: "Property", tailText: "(owner: C, value: TValue) (<root>)" }
|
||||
|
||||
+3
-3
@@ -1,16 +1,16 @@
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class Property<TOwner, TValue>
|
||||
class Property<TOwner, TValue>(owner: TOwner, value: TValue)
|
||||
|
||||
operator fun <TValue, TOwner> Property<TOwner, TValue>.getValue(thisRef: TOwner, property: KProperty<*>): TValue {
|
||||
throw Exception()
|
||||
}
|
||||
|
||||
fun<TOwner, TValue> createProperty(): Property<TOwner, TValue> = Property()
|
||||
fun<TOwner, TValue> createProperty(owner: TOwner, value: TValue): Property<TOwner, TValue> = Property(owner, value)
|
||||
|
||||
class C {
|
||||
val v: Int by <caret>
|
||||
}
|
||||
|
||||
// EXIST: { itemText: "createProperty", typeText: "Property<C, Int>" }
|
||||
// EXIST: Property
|
||||
// EXIST: { itemText: "Property", tailText: "(owner: C, value: Int) (<root>)" }
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class Property<TOwner1, TValue1>
|
||||
class Property<TOwner1, TValue1>(owner: TOwner1, value: TValue1)
|
||||
|
||||
operator fun <TValue2, TOwner2> Property<TOwner2, TValue2>.getValue(thisRef: TOwner2, property: KProperty<*>): TValue2 {
|
||||
throw Exception()
|
||||
@@ -10,11 +10,11 @@ operator fun <TValue3, TOwner3> Property<TOwner3, TValue3>.setValue(thisRef: TOw
|
||||
throw Exception()
|
||||
}
|
||||
|
||||
fun<TOwner4, TValue4> createProperty(): Property<TOwner4, TValue4> = Property()
|
||||
fun<TOwner4, TValue4> createProperty(owner: TOwner4, value: TValue4): Property<TOwner4, TValue4> = Property(owner, value)
|
||||
|
||||
class C {
|
||||
var v by <caret>
|
||||
}
|
||||
|
||||
// EXIST: { itemText: "createProperty", typeText: "Property<C, TValue4>" }
|
||||
// EXIST: Property
|
||||
// EXIST: { itemText: "Property", tailText: "(owner: C, value: TValue1) (<root>)" }
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class Property<TOwner1, TValue1>
|
||||
class Property<TOwner1, TValue1>(owner: TOwner1, value: TValue1)
|
||||
|
||||
operator fun <TValue2, TOwner2> Property<TOwner2, TValue2>.getValue(thisRef: TOwner2, property: KProperty<*>): TValue2 {
|
||||
throw Exception()
|
||||
@@ -10,11 +10,11 @@ operator fun <TValue3, TOwner3> Property<TOwner3, TValue3>.setValue(thisRef: TOw
|
||||
throw Exception()
|
||||
}
|
||||
|
||||
fun<TOwner4, TValue4> createProperty(): Property<TOwner4, TValue4> = Property()
|
||||
fun<TOwner4, TValue4> createProperty(owner: TOwner4, value: TValue4): Property<TOwner4, TValue4> = Property(owner, value)
|
||||
|
||||
class C {
|
||||
var v: Int by <caret>
|
||||
}
|
||||
|
||||
// EXIST: { itemText: "createProperty", typeText: "Property<C, Int>" }
|
||||
// EXIST: Property
|
||||
// EXIST: { itemText: "Property", tailText: "(owner: C, value: Int) (<root>)" }
|
||||
|
||||
Reference in New Issue
Block a user