Smart completion to work when some of previous arguments have errors (+ fixed testAfterEmptyArgument broken by previous changes)

This commit is contained in:
Valentin Kipyatkov
2015-09-03 14:03:26 +03:00
parent b11f47ec33
commit 7663793e3d
4 changed files with 45 additions and 2 deletions
+16
View File
@@ -0,0 +1,16 @@
class A
class B
class C
class D
class E
fun foo(s: String, a: A){}
fun foo(p: Int, b: B, c: C){}
fun foo(s: String, d: D, e: E, a: A){}
fun f(pa: A, pb: B, pc: C, pd: D, pe: E) {
foo(xxx, pb, <caret>)
}
// EXIST: pc
// ABSENT: pa, pb, pd, pe