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
|
||||
Reference in New Issue
Block a user