More correct named arguments completion

This commit is contained in:
Valentin Kipyatkov
2015-09-02 17:37:46 +03:00
parent 7cf4d265bb
commit db4c163539
9 changed files with 112 additions and 84 deletions
@@ -0,0 +1,13 @@
fun foo(p: Int, xxP1: String, xxP2: Int){}
fun foo(p: Int, xxP1: String, xxP2: Char){}
fun foo(p: Int, xxx: Any?){}
fun foo(p: String, xxy: String){}
fun f() {
foo(1, xx<caret>)
}
// EXIST: { itemText:"xxP1 =", tailText: " String" }
// EXIST: { itemText:"xxP2 =", tailText: " ..." }
// EXIST: { itemText:"xxx =", tailText: " Any?" }
// NOTHING_ELSE