Performance optimization in completion: search context variables of functional types later

This commit is contained in:
Valentin Kipyatkov
2015-10-30 18:26:12 +03:00
parent 0a5a5a2e36
commit b05d490eeb
19 changed files with 320 additions and 172 deletions
@@ -0,0 +1,12 @@
class C {
companion object {
fun create(p: (Int) -> Unit) = C()
}
}
val handler: (Int) -> Unit = {}
fun v: C = cr<caret>
// EXIST: { allLookupStrings: "C, create", itemText: "C.create", tailText: " {...} (p: (Int) -> Unit) (<root>)", typeText:"C" }
// EXIST: { allLookupStrings: "C, create", itemText: "C.create", tailText: "(handler) (<root>)", typeText:"C" }