KT-6780 Completion inserts incorrect comma in end of parameter list when lambda parameter exists

#KT-6780 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-05-06 20:06:36 +03:00
parent a036a6435b
commit 023c5eabf4
6 changed files with 51 additions and 1 deletions
@@ -0,0 +1,7 @@
fun foo(p: Int, handler: () -> Unit){}
fun bar(p: Int) {
foo(<caret>) { doIt() }
}
// ELEMENT: p
@@ -0,0 +1,7 @@
fun foo(p: Int, handler: () -> Unit){}
fun bar(p: Int) {
foo(p<caret>) { doIt() }
}
// ELEMENT: p
@@ -0,0 +1,7 @@
fun foo(p: Int, handler: () -> Unit, optional: String = ""){}
fun bar(p: Int) {
foo(<caret>)
}
// ELEMENT: p
@@ -0,0 +1,7 @@
fun foo(p: Int, handler: () -> Unit, optional: String = ""){}
fun bar(p: Int) {
foo(p<caret>)
}
// ELEMENT: p