KT-12669 Completion should show variant with () when there is default lambda
#KT-12669
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
fun xfoo(p: () -> Unit = {}){}
|
||||
|
||||
fun test() {
|
||||
xfo<caret>
|
||||
}
|
||||
|
||||
// ELEMENT: xfoo
|
||||
// TAIL_TEXT: " {...} (p: () -> Unit = ...) (<root>)"
|
||||
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
fun xfoo(p: () -> Unit = {}){}
|
||||
|
||||
fun test() {
|
||||
xfoo { <caret> }
|
||||
}
|
||||
|
||||
// ELEMENT: xfoo
|
||||
// TAIL_TEXT: " {...} (p: () -> Unit = ...) (<root>)"
|
||||
|
||||
Reference in New Issue
Block a user