Smart completion after "by" works for getValue/setValue in generic class
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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>)" }
|
||||
@@ -0,0 +1,12 @@
|
||||
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: T by <caret>
|
||||
}
|
||||
|
||||
// EXIST: lazy
|
||||
// EXIST: { itemText: "X", tailText: "(t: T) (<root>)" }
|
||||
@@ -0,0 +1,12 @@
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class X<T>(t: T) {
|
||||
operator fun getValue(thisRef: C<String, T>, property: KProperty<*>): T = throw Exception()
|
||||
}
|
||||
|
||||
class C<T1, T2> {
|
||||
val property: T2 by <caret>
|
||||
}
|
||||
|
||||
// EXIST: lazy
|
||||
// ABSENT: X
|
||||
@@ -0,0 +1,12 @@
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class X<T>(t: T) {
|
||||
operator fun getValue(thisRef: C<T>, property: KProperty<*>): T = throw Exception()
|
||||
operator fun setValue(thisRef: C<T>, property: KProperty<*>, t: T) {}
|
||||
}
|
||||
|
||||
class C<T> {
|
||||
var property by <caret>
|
||||
}
|
||||
|
||||
// EXIST: { itemText: "X", tailText: "(t: T) (<root>)" }
|
||||
Reference in New Issue
Block a user