Smart completion: support for overloaded method calls

This commit is contained in:
Valentin Kipyatkov
2014-03-27 15:21:57 +04:00
parent 15364ceae6
commit 50bb90a1e3
13 changed files with 279 additions and 38 deletions
@@ -0,0 +1,23 @@
val s = ""
val i = 123
fun f(p1: Any, p2: String, p3: Int, p4: Char) {
foo(<caret>abc)
}
fun foo(p1: String, p2: Any) {
}
fun foo(p1: Int) {
}
// add this signature so that call above is not resolved
fun foo(p1: Char) {
}
// ABSENT: p1
// EXIST: p2
// EXIST: p3
// EXIST: p4
// EXIST: s
// EXIST: i