Smart completion: function literal argument can correspond only to the last parameter!

This commit is contained in:
Valentin Kipyatkov
2015-06-04 22:21:11 +03:00
parent 6284f557e6
commit ee15eae6b3
5 changed files with 23 additions and 5 deletions
@@ -0,0 +1,7 @@
fun foo(p: Int, handler: () -> Unit){}
fun bar(p: Int) {
foo(p<caret>)
}
// ELEMENT: p