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
@@ -48,6 +48,12 @@ public class ScriptCodegenTestGenerated extends AbstractScriptCodegenTest {
doTest(fileName);
}
@TestMetadata("destructuringDeclaration.kts")
public void testDestructuringDeclaration() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/script/destructuringDeclaration.kts");
doTest(fileName);
}
@TestMetadata("empty.kts")
public void testEmpty() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/script/empty.kts");