JS: fix KT-37386

Anonymous object constructor parameters should not reuse JsName's
of the super class. Otherwise the temporary name renamer gets
confused.
This commit is contained in:
Anton Bannykh
2020-03-10 23:31:53 +03:00
parent 182c1cee05
commit 63a909dee6
4 changed files with 23 additions and 5 deletions
@@ -6243,6 +6243,11 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/objectDeclaration/kt3684.kt");
}
@TestMetadata("kt37386.kt")
public void testKt37386() throws Exception {
runTest("js/js.translator/testData/box/objectDeclaration/kt37386.kt");
}
@TestMetadata("lambdaInObjectInsideObject.kt")
public void testLambdaInObjectInsideObject() throws Exception {
runTest("js/js.translator/testData/box/objectDeclaration/lambdaInObjectInsideObject.kt");
@@ -6263,6 +6263,11 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
runTest("js/js.translator/testData/box/objectDeclaration/kt3684.kt");
}
@TestMetadata("kt37386.kt")
public void testKt37386() throws Exception {
runTest("js/js.translator/testData/box/objectDeclaration/kt37386.kt");
}
@TestMetadata("lambdaInObjectInsideObject.kt")
public void testLambdaInObjectInsideObject() throws Exception {
runTest("js/js.translator/testData/box/objectDeclaration/lambdaInObjectInsideObject.kt");