Generate non-local destructuring declarations as properties
#KT-5620 Fixed #KT-15810 Fixed
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,5 @@
|
||||
>>> val (a, b) = listOf(1, 2)
|
||||
>>> a
|
||||
1
|
||||
>>> b
|
||||
2
|
||||
Reference in New Issue
Block a user