Files
kotlin-fork/idea/testData/quickfix/renameToUnderscore/lambdaDestructuring.kt.after
T
Denis Zharkov 5e1b219784 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
2016-10-24 10:19:25 +03:00

14 lines
192 B
Plaintext
Vendored

// "Rename to _" "true"
data class A(val x: String, val y: Int)
fun foo(block: (A) -> Unit) {
block(A("", 1))
}
fun bar() {
foo { (_<caret>, y: Int) ->
y.hashCode()
}
}