[FE] Fix exception from the 'UnusedChecker' on a destructuring

^KT-55973 Fixed
This commit is contained in:
Yan Zhulanow
2023-01-17 05:03:01 +09:00
committed by Space Team
parent 84baee1ef1
commit 9873fe84f2
6 changed files with 36 additions and 1 deletions
@@ -0,0 +1,11 @@
class Test {
private fun test(x: Int, y: Int) {
val (_, _) = invert(x, y)
}
private fun invert(x: Int, y: Int): Point {
return Point(-x, -y)
}
}
data class Point(val x: Int, val y: Int)