Files
kotlin-fork/idea/idea-completion/testData/basic/common/extensionMethodInObject/ObjectImplicitReceiver.kt
T
Roman Golyshev 90750483ee KT-36860 Collect extensions from object on first completion
- This should not affect the performance of the completion, since all
object extensions are collected on the last step, when all main variants
are already collected
- Add more tests
- Also, disable completion of extensions from objects as callable
references (^KT-37395 Fixed)
- ^KT-36860 Fixed
2020-03-11 13:31:56 +03:00

13 lines
253 B
Kotlin
Vendored

class T
object A {
fun T.fooExtension() {}
val T.fooProperty get() = 10
}
fun T.usage() {
foo<caret>
}
// EXIST: { lookupString: "fooExtension", itemText: "fooExtension" }
// EXIST: { lookupString: "fooProperty", itemText: "fooProperty" }