Support for callable references in smart completion

This commit is contained in:
Valentin Kipyatkov
2015-09-30 19:56:17 +03:00
parent 3f64b25df3
commit ebf649a681
24 changed files with 241 additions and 46 deletions
@@ -0,0 +1,15 @@
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