[K/JS] Calculate generated function names based on signatures of argument types (instead of fqNames) ^KT-49077 Fixed

This commit is contained in:
Artem Kobzar
2023-07-11 13:14:45 +00:00
committed by Space Team
parent e94a0b8483
commit fdda394a77
12 changed files with 192 additions and 26 deletions
@@ -8270,6 +8270,18 @@ public class FirJsBoxTestGenerated extends AbstractFirJsBoxTest {
runTest("js/js.translator/testData/box/nameClashes/overloadExtension.kt");
}
@Test
@TestMetadata("overloadMethodsWithSameParameterPrivateTypeName.kt")
public void testOverloadMethodsWithSameParameterPrivateTypeName() throws Exception {
runTest("js/js.translator/testData/box/nameClashes/overloadMethodsWithSameParameterPrivateTypeName.kt");
}
@Test
@TestMetadata("overloadMethodsWithSameParameterTypeName.kt")
public void testOverloadMethodsWithSameParameterTypeName() throws Exception {
runTest("js/js.translator/testData/box/nameClashes/overloadMethodsWithSameParameterTypeName.kt");
}
@Test
@TestMetadata("propertyAndNativeMethod.kt")
public void testPropertyAndNativeMethod() throws Exception {
@@ -8376,6 +8376,18 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
runTest("js/js.translator/testData/box/nameClashes/overloadExtension.kt");
}
@Test
@TestMetadata("overloadMethodsWithSameParameterPrivateTypeName.kt")
public void testOverloadMethodsWithSameParameterPrivateTypeName() throws Exception {
runTest("js/js.translator/testData/box/nameClashes/overloadMethodsWithSameParameterPrivateTypeName.kt");
}
@Test
@TestMetadata("overloadMethodsWithSameParameterTypeName.kt")
public void testOverloadMethodsWithSameParameterTypeName() throws Exception {
runTest("js/js.translator/testData/box/nameClashes/overloadMethodsWithSameParameterTypeName.kt");
}
@Test
@TestMetadata("propertyAndNativeMethod.kt")
public void testPropertyAndNativeMethod() throws Exception {
@@ -8270,6 +8270,18 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/nameClashes/overloadExtension.kt");
}
@Test
@TestMetadata("overloadMethodsWithSameParameterPrivateTypeName.kt")
public void testOverloadMethodsWithSameParameterPrivateTypeName() throws Exception {
runTest("js/js.translator/testData/box/nameClashes/overloadMethodsWithSameParameterPrivateTypeName.kt");
}
@Test
@TestMetadata("overloadMethodsWithSameParameterTypeName.kt")
public void testOverloadMethodsWithSameParameterTypeName() throws Exception {
runTest("js/js.translator/testData/box/nameClashes/overloadMethodsWithSameParameterTypeName.kt");
}
@Test
@TestMetadata("propertyAndNativeMethod.kt")
public void testPropertyAndNativeMethod() throws Exception {