Generate non-local destructuring declarations as properties

#KT-5620 Fixed
 #KT-15810 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-05-24 17:32:11 +03:00
parent 400ecd5e13
commit 47f2386212
8 changed files with 106 additions and 5 deletions
@@ -0,0 +1,10 @@
val (abc, def) = A()
val rv = abc + def
class A {
operator fun component1() = 123
operator fun component2() = 2
}
// expected: rv: 125