Completion of lambda parameters

Also changed policy for sorting of smart completion items in basic completion

 #KT-16800 Fixed
 #KT-12002 Fixed
This commit is contained in:
Valentin Kipyatkov
2017-03-16 20:36:08 +03:00
parent c6b9aebfcf
commit b5dd2cc540
66 changed files with 558 additions and 256 deletions
@@ -0,0 +1,8 @@
fun <R> String.fold(initial: R, operation: (acc: R, Char) -> R): R = TODO()
fun foo(p: Int) {
"abc".fold(1) { <caret> }
}
// ORDER: "acc, c ->"
// ORDER: "acc: Int, c: Char ->"
@@ -20,6 +20,6 @@ fun test(listParam: Int) {
// ORDER: listImportedVal
// ORDER: listThisFileFun
// ORDER: listImportedFun
// ORDER: listMatch
// ORDER: listNew
// ORDER: "listMatch ="
// ORDER: "listNew ="
// ORDER: listFunNotMatchingType
@@ -6,6 +6,6 @@ fun test(tri: Boolean, trb: Int) {
// ORDER: true
// ORDER: tri
// ORDER: tra
// ORDER: "tra ="
// ORDER: trb
// ORDER: try
@@ -11,5 +11,5 @@ fun test(insa: Any) {
}
// ORDER: instance
// ORDER: insp
// ORDER: "insp ="
// ORDER: insa
@@ -8,5 +8,5 @@ fun bar(b: I2, a: I1, c: I1) {
}
// ORDER: a
// ORDER: c
// ORDER: "a, b, c"
// ORDER: c