Revert ""Use destructuring declaration": fix it works correctly if variable name is shadowed"

This reverts commit d61158a1
This commit is contained in:
Yan Zhulanow
2020-10-24 00:19:10 +09:00
parent ab70cc35ea
commit f615ed2f26
11 changed files with 5 additions and 128 deletions
@@ -1,12 +0,0 @@
// WITH_RUNTIME
fun main() {
data class A(var x: Int)
val <caret>a = A(0)
val x = a.x
run {
val x = 1
val z = a.x
}
}
@@ -1,11 +0,0 @@
// WITH_RUNTIME
fun main() {
data class A(var x: Int)
val (x1) = A(0)
run {
val x = 1
val z = x1
}
}