KT-12669 Completion should show variant with () when there is default lambda

#KT-12669
This commit is contained in:
Valentin Kipyatkov
2016-06-16 21:01:46 +03:00
parent 962a8f9bf4
commit eb1dbfc652
6 changed files with 37 additions and 6 deletions
@@ -0,0 +1,9 @@
fun xfoo(p: () -> Unit = {}){}
fun test() {
xfo<caret>
}
// ELEMENT: xfoo
// TAIL_TEXT: " {...} (p: () -> Unit = ...) (<root>)"
@@ -0,0 +1,9 @@
fun xfoo(p: () -> Unit = {}){}
fun test() {
xfoo { <caret> }
}
// ELEMENT: xfoo
// TAIL_TEXT: " {...} (p: () -> Unit = ...) (<root>)"