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
@@ -1,8 +1,10 @@
fun foo(p: Int, handler: (String, Char) -> Unit){}
fun foo(p: Int, handler: (String, xx: Char) -> Unit){}
fun bar(handler: (String, Char) -> Unit) {
foo(1)<caret>
}
// EXIST: "{ String, Char -> ... }"
// WITH_ORDER
// EXIST: "{ s, xx -> ... }"
// EXIST: "{ s: String, xx: Char -> ... }"
// ABSENT: handler