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 ->"