Implement quick-fix replacing parameter name with _
This quick-fix is registered for UNUSED_* diagnostic in places where it can be applied (destructured declarations/lambda parameters) #KT-14431 Fixed
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// "Rename to _" "true"
|
||||
|
||||
data class A(val x: String, val y: Int)
|
||||
|
||||
fun foo(block: (A) -> Unit) {
|
||||
block(A("", 1))
|
||||
}
|
||||
|
||||
fun bar() {
|
||||
foo { (x<caret>, y: Int) ->
|
||||
y.hashCode()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user