Files
Toshiaki Kameyama 67666dcbcb "Use destructuring declaration": fix false negative with same name references
#KT-33003 Fixed

Original commit: 1968eb95fea826ed96682163c4e1290b549fd367

GitOrigin-RevId: edd31b0d58ac4104d7d97dae73f3ae1a8c4ce34d
2020-11-13 16:24:45 +03:00

8 lines
137 B
Kotlin

data class D(val v1: Int, val v2: Int)
fun foo(): D = D(1, 2)
fun test(): Int {
val <caret>foo = foo()
return foo.v1 + foo.v2
}