Report warning on unused entities that can be renamed to _
Currently it's all about lambda parameters/destructuring entries #KT-14347 In Progress
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
data class D(val x: Int, val y: Int, val z: Int)
|
||||
fun foo(): Int {
|
||||
val (x, y, z) = D(1, 2, 3)
|
||||
val (<!UNUSED_VARIABLE!>x<!>, y, z) = D(1, 2, 3)
|
||||
return y + z // x is not used, but we cannot do anything with it
|
||||
}
|
||||
fun bar(): Int {
|
||||
|
||||
Reference in New Issue
Block a user