KT-13830: support case when LHS of augmented assignment is something different than qualified expression or array access

This commit is contained in:
Alexey Andreev
2016-09-27 19:32:22 +03:00
committed by Alexey Andreev
parent afe8244183
commit 30c2c85c94
4 changed files with 81 additions and 4 deletions
@@ -5797,6 +5797,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("js/js.translator/testData/box/operatorOverloading"), Pattern.compile("^([^_](.+))\\.kt$"), true);
}
@TestMetadata("augmentedAssignmentLhs.kt")
public void testAugmentedAssignmentLhs() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/operatorOverloading/augmentedAssignmentLhs.kt");
doTest(fileName);
}
@TestMetadata("binaryDivOverload.kt")
public void testBinaryDivOverload() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/operatorOverloading/binaryDivOverload.kt");