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
@@ -0,0 +1,4 @@
|
||||
// "Remove parameter 'block'" "true"
|
||||
fun doNotUse1(<caret>block: () -> Unit) {}
|
||||
|
||||
fun useNotUse1() = doNotUse1 { }
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Remove parameter 'block'" "true"
|
||||
fun doNotUse1() {}
|
||||
|
||||
fun useNotUse1() = doNotUse1()
|
||||
+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