Files
kotlin-fork/idea/idea-completion/testData/basic/common/extensionMethodInObject/CompanionObjectExplicitReceiverInfixExtension.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

14 lines
202 B
Kotlin
Vendored

class T
class A {
companion object {
infix fun T.fooExtension(i: Int) {}
}
}
fun usage(t: T) {
t foo<caret>
}
// EXIST: { lookupString: "fooExtension", itemText: "fooExtension" }