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
@@ -190,6 +190,11 @@ public class ScriptCodegenTestGenerated extends AbstractScriptCodegenTest {
runTest("compiler/testData/codegen/script/topLevelTypealias.kts");
}
@TestMetadata("twoDestructuringDeclarations.kts")
public void testTwoDestructuringDeclarations() throws Exception {
runTest("compiler/testData/codegen/script/twoDestructuringDeclarations.kts");
}
@TestMetadata("compiler/testData/codegen/script/scriptInstanceCapturing")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)