Files
kotlin-fork/idea/idea-completion/testData/smart/callableReference/NonEmptyQualifier2.kt
T
2015-10-03 10:40:50 +03:00

16 lines
434 B
Kotlin
Vendored

import kotlin.reflect.KProperty1
fun foo(p: KProperty1<String, Int>){}
fun bar() {
foo(String::xT<caret>)
}
val String.xTopLevelIntVal: Int get() = 1
val String.xTopLevelStringVal: String get() = "1"
val Any.xTopLevelValOnAny: Int get() = 1
val Int.xTopLevelValOnInt: Int get() = 1
// EXIST: { lookupString:"xTopLevelIntVal", itemText:"xTopLevelIntVal", tailText: " for String in <root>", typeText: "Int" }
// NOTHING_ELSE