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,18 @@
val s = ""
val i = 123
fun f(p1: Any, p2: String, p3: Int) {
foo(<caret>123) // this call is resolved to Foo(Int) but types from all signatures should participate
}
fun foo(p1: String, p2: Any) {
}
fun foo(p1: Int) {
}
// ABSENT: p1
// EXIST: p2
// EXIST: p3
// EXIST: s
// EXIST: i