Smart completion after "by" works for generic properties too
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class X {
|
||||
operator fun getValue(thisRef: List<String>, property: KProperty<*>): String = ""
|
||||
}
|
||||
|
||||
val <T> List<T>.property: T by <caret>
|
||||
|
||||
// EXIST: lazy
|
||||
// EXIST: X
|
||||
@@ -0,0 +1,10 @@
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class X {
|
||||
operator fun getValue(thisRef: List<String>, property: KProperty<*>): String = ""
|
||||
operator fun setValue(thisRef: List<String>, property: KProperty<*>, value: String){}
|
||||
}
|
||||
|
||||
var <T> List<T>.property: T by <caret>
|
||||
|
||||
// EXIST: X
|
||||
Reference in New Issue
Block a user