[K/JS] Support KClass<*>.createInstance reflection method ^KT-58684 Fixed

This commit is contained in:
Artem Kobzar
2023-07-06 18:18:14 +00:00
committed by Space Team
parent ca0b061675
commit cf949e8760
26 changed files with 453 additions and 46 deletions
@@ -9914,6 +9914,18 @@ public class FirJsBoxTestGenerated extends AbstractFirJsBoxTest {
runTest("js/js.translator/testData/box/reflection/classJsName.kt");
}
@Test
@TestMetadata("createInstance.kt")
public void testCreateInstance() throws Exception {
runTest("js/js.translator/testData/box/reflection/createInstance.kt");
}
@Test
@TestMetadata("createInstanceByInstance.kt")
public void testCreateInstanceByInstance() throws Exception {
runTest("js/js.translator/testData/box/reflection/createInstanceByInstance.kt");
}
@Test
@TestMetadata("external.kt")
public void testExternal() throws Exception {
@@ -10020,6 +10020,18 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
runTest("js/js.translator/testData/box/reflection/classJsName.kt");
}
@Test
@TestMetadata("createInstance.kt")
public void testCreateInstance() throws Exception {
runTest("js/js.translator/testData/box/reflection/createInstance.kt");
}
@Test
@TestMetadata("createInstanceByInstance.kt")
public void testCreateInstanceByInstance() throws Exception {
runTest("js/js.translator/testData/box/reflection/createInstanceByInstance.kt");
}
@Test
@TestMetadata("external.kt")
public void testExternal() throws Exception {
@@ -9914,6 +9914,18 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/reflection/classJsName.kt");
}
@Test
@TestMetadata("createInstance.kt")
public void testCreateInstance() throws Exception {
runTest("js/js.translator/testData/box/reflection/createInstance.kt");
}
@Test
@TestMetadata("createInstanceByInstance.kt")
public void testCreateInstanceByInstance() throws Exception {
runTest("js/js.translator/testData/box/reflection/createInstanceByInstance.kt");
}
@Test
@TestMetadata("external.kt")
public void testExternal() throws Exception {