K2 Scripting: support script top-level destructuring declarations

This commit is contained in:
Ilya Chernikov
2023-05-25 17:05:32 +02:00
committed by Space Team
parent 02e2438d37
commit bf3a6f7678
16 changed files with 199 additions and 15 deletions
@@ -7,9 +7,9 @@ val (c1) = <!COMPONENT_FUNCTION_MISSING, UNRESOLVED_REFERENCE!>unresolved<!>
val (e1, _) = A()
<!UNRESOLVED_REFERENCE!>a1<!>
<!UNRESOLVED_REFERENCE!>a2<!>
<!UNRESOLVED_REFERENCE!>e1<!>
a1
a2
e1
class A {
operator fun component1() = 1