Only named parameters in completion when nothing else can be

This commit is contained in:
Valentin Kipyatkov
2014-08-05 16:52:39 +04:00
parent 3e051d617c
commit 83b33bd58b
7 changed files with 77 additions and 17 deletions
@@ -0,0 +1,9 @@
fun foo(first: Int, second: Int, third: String) {
}
fun test(p: Int) = foo(12, <caret>, third = "")
// EXIST: p
// ABSENT: first
// ABSENT: third
// EXIST: second
@@ -0,0 +1,9 @@
fun foo(first: Int, second: Int, third: String) {
}
fun test(p: Int) = foo(12, third = "", <caret>)
// ABSENT: p
// ABSENT: first
// ABSENT: third
// EXIST: second