Change signature: fix it works correctly when call site function has no value argument list
#KT-23510 Fixed
This commit is contained in:
committed by
Vladimir Dolzhenko
parent
223ed1ad60
commit
f487118be5
+6
@@ -0,0 +1,6 @@
|
||||
fun foo(block: () -> Unit, i: Int) {
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo({}, 0)
|
||||
}
|
||||
+6
@@ -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 {}
|
||||
}
|
||||
Reference in New Issue
Block a user