JS: optimize destructuring declaration when possible

See KT-8285
This commit is contained in:
Alexey Andreev
2017-09-18 13:07:14 +03:00
parent a2bfaf4fc8
commit b4c622d433
3 changed files with 29 additions and 1 deletions
@@ -2332,6 +2332,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
doTest(fileName);
}
@TestMetadata("singleComponentDestructuring.kt")
public void testSingleComponentDestructuring() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/expression/evaluationOrder/singleComponentDestructuring.kt");
doTest(fileName);
}
@TestMetadata("whenAsMinusArgument.kt")
public void testWhenAsMinusArgument() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/expression/evaluationOrder/whenAsMinusArgument.kt");