Additional item inserting lambda provided by completion when all parameters before the last are optional
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
fun xfoo(option1: String = "", option2: Int = 1, p: () -> Unit){}
|
||||
|
||||
fun test(param: () -> Unit) {
|
||||
xfoo<caret>
|
||||
}
|
||||
|
||||
// ELEMENT: xfoo
|
||||
// TAIL_TEXT: " {...} (p: () -> Unit) (<root>)"
|
||||
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
fun xfoo(option1: String = "", option2: Int = 1, p: () -> Unit){}
|
||||
|
||||
fun test(param: () -> Unit) {
|
||||
xfoo { <caret> }
|
||||
}
|
||||
|
||||
// ELEMENT: xfoo
|
||||
// TAIL_TEXT: " {...} (p: () -> Unit) (<root>)"
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
fun xfoo(option1: String = "", option2: Int = 1, p: (String, Int) -> Unit){}
|
||||
|
||||
fun test(param: () -> Unit) {
|
||||
xfoo<caret>
|
||||
}
|
||||
|
||||
// ELEMENT: xfoo
|
||||
// TAIL_TEXT: " { String, Int -> ... } (p: (String, Int) -> Unit) (<root>)"
|
||||
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
fun xfoo(option1: String = "", option2: Int = 1, p: (String, Int) -> Unit){}
|
||||
|
||||
fun test(param: () -> Unit) {
|
||||
xfoo { s, i -> <caret> }
|
||||
}
|
||||
|
||||
// ELEMENT: xfoo
|
||||
// TAIL_TEXT: " { String, Int -> ... } (p: (String, Int) -> Unit) (<root>)"
|
||||
|
||||
Reference in New Issue
Block a user