6560ecc82b
- Add extensions only when completion of static members is enabled (double ctrl + space and nonempty prefix) - Add full import for callables with receiver in `LookupElement.decorateAsStaticMember`
16 lines
316 B
Kotlin
Vendored
16 lines
316 B
Kotlin
Vendored
class T
|
|
|
|
class A {
|
|
companion object {
|
|
fun T.fooExtension() {}
|
|
val T.fooProperty get() = 10
|
|
}
|
|
}
|
|
|
|
fun usage(t: T) {
|
|
t.foo<caret>
|
|
}
|
|
|
|
// INVOCATION_COUNT: 2
|
|
// EXIST: { lookupString: "fooExtension", itemText: "fooExtension" }
|
|
// EXIST: { lookupString: "fooProperty", itemText: "fooProperty" } |