7d89869c02
Only "Rename to _" should work in the case. The problem is that removing lambda's parameter may lead behaviour changes. This quick-fix was not being invoked run before KT-14347 had been implemented # Conflicts: # idea/tests/org/jetbrains/kotlin/idea/quickfix/QuickFixTestGenerated.java
14 lines
298 B
Kotlin
Vendored
14 lines
298 B
Kotlin
Vendored
// "Remove parameter 'x'" "false"
|
|
// ACTION: Add 'block =' to argument
|
|
// ACTION: Convert parameter to receiver
|
|
// ACTION: Rename to _
|
|
// ACTION: Specify return type explicitly
|
|
|
|
fun foo(block: (String, Int) -> Unit) {
|
|
block("", 1)
|
|
}
|
|
|
|
fun bar() {
|
|
foo(fun(x<caret>: String, y: Int) = Unit)
|
|
}
|