Do not suggest "Remove parameter" quick-fix on lambdas
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
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
// "Remove parameter 'x'" "false"
|
||||
// ACTION: Move lambda argument into parentheses
|
||||
// ACTION: Remove explicit lambda parameter types (may break code)
|
||||
// ACTION: Rename to _
|
||||
|
||||
fun foo(block: (String, Int) -> Unit) {
|
||||
block("", 1)
|
||||
}
|
||||
|
||||
fun bar() {
|
||||
foo { x<caret>: String, y: Int ->
|
||||
y.hashCode()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user