Change signature: fix it works correctly when call site function has no value argument list

#KT-23510 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-02-19 22:41:25 +09:00
committed by Vladimir Dolzhenko
parent 223ed1ad60
commit f487118be5
9 changed files with 56 additions and 0 deletions
@@ -0,0 +1,6 @@
fun foo(block: () -> Unit, i: Int) {
}
fun test() {
foo({}, 0)
}
@@ -0,0 +1,6 @@
fun <caret>foo(block: () -> Unit) {
}
fun test() {
foo {}
}
@@ -0,0 +1,6 @@
fun foo() {
}
fun test() {
foo()
}
@@ -0,0 +1,6 @@
fun <caret>foo(block: () -> Unit) {
}
fun test() {
foo {}
}