Files
kotlin-fork/idea/idea-completion/testData/basic/common/primitiveCompletion/genericExtensionPropertyAndFunctionExplicitReceiver.kt
T
Roman Golyshev ffb907150a Use information about receivers in completion
- Found few problems during resolving a single functon; disabled
assertions and marked them with TODO
- Add simple completion tests to simplify development
2020-08-09 12:01:00 +03:00

23 lines
357 B
Kotlin
Vendored

fun <T : Any> T.anyFun() {}
val <T : Any> T.anyVal: Int get() = 10
open class A
fun <T : A> T.aFun() {}
val <T : A> T.aVal: Int get() = 10
open class B
fun <T : B> T.bFun() {}
val <T : B> T.bVal: Int get() = 10
fun test(a: A) {
a.aFun()
a.<caret>
}
// EXIST: anyFun
// EXIST: anyVal
// EXIST: aVal
// EXIST: aFun
// ABSENT: bVal
// ABSENT: bFun