[FIR] Recursively search dependsOn modules in visibility checks

#KT-59071 Fixed
This commit is contained in:
Brian Norman
2023-07-21 15:29:55 -05:00
committed by Space Team
parent 95bf63d6cb
commit 42ebbb937c
9 changed files with 138 additions and 5 deletions
@@ -22184,6 +22184,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/multimodule"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
}
@Test
@TestMetadata("dependsOnModule.kt")
public void testDependsOnModule() throws Exception {
runTest("compiler/testData/diagnostics/tests/multimodule/dependsOnModule.kt");
}
@Test
@TestMetadata("friendModule.kt")
public void testFriendModule() throws Exception {
@@ -22184,6 +22184,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/multimodule"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
}
@Test
@TestMetadata("dependsOnModule.kt")
public void testDependsOnModule() throws Exception {
runTest("compiler/testData/diagnostics/tests/multimodule/dependsOnModule.kt");
}
@Test
@TestMetadata("friendModule.kt")
public void testFriendModule() throws Exception {