[K2 JS] Do not load transitive dependencies for building K2/JS klibs

^KT-57262 Fixed
This commit is contained in:
Alexander Korepanov
2023-03-13 12:31:56 +01:00
committed by Space Team
parent 62fb3df7f0
commit e3402fcc87
14 changed files with 94 additions and 34 deletions
@@ -7138,6 +7138,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
runTest("js/js.translator/testData/box/multiModule/symbolRedeclaration.kt");
}
@Test
@TestMetadata("transitiveDependency.kt")
public void testTransitiveDependency() throws Exception {
runTest("js/js.translator/testData/box/multiModule/transitiveDependency.kt");
}
@Test
@TestMetadata("useElementsFromDefaultPackageInAnotherModule.kt")
public void testUseElementsFromDefaultPackageInAnotherModule() throws Exception {
@@ -7820,6 +7820,12 @@ public class FirJsBoxTestGenerated extends AbstractFirJsBoxTest {
runTest("js/js.translator/testData/box/multiModule/symbolRedeclaration.kt");
}
@Test
@TestMetadata("transitiveDependency.kt")
public void testTransitiveDependency() throws Exception {
runTest("js/js.translator/testData/box/multiModule/transitiveDependency.kt");
}
@Test
@TestMetadata("useElementsFromDefaultPackageInAnotherModule.kt")
public void testUseElementsFromDefaultPackageInAnotherModule() throws Exception {
@@ -7926,6 +7926,12 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
runTest("js/js.translator/testData/box/multiModule/symbolRedeclaration.kt");
}
@Test
@TestMetadata("transitiveDependency.kt")
public void testTransitiveDependency() throws Exception {
runTest("js/js.translator/testData/box/multiModule/transitiveDependency.kt");
}
@Test
@TestMetadata("useElementsFromDefaultPackageInAnotherModule.kt")
public void testUseElementsFromDefaultPackageInAnotherModule() throws Exception {
@@ -7820,6 +7820,12 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/multiModule/symbolRedeclaration.kt");
}
@Test
@TestMetadata("transitiveDependency.kt")
public void testTransitiveDependency() throws Exception {
runTest("js/js.translator/testData/box/multiModule/transitiveDependency.kt");
}
@Test
@TestMetadata("useElementsFromDefaultPackageInAnotherModule.kt")
public void testUseElementsFromDefaultPackageInAnotherModule() throws Exception {
@@ -0,0 +1,15 @@
// KJS_WITH_FULL_RUNTIME
// MODULE: lib1
// FILE: lib1.kt
fun module1() = "K"
// MODULE: lib2(lib1)
// FILE: lib2.kt
fun module2() = "O" + module1()
// MODULE: main(lib2)
// FILE: main.kt
fun box() = module2()