[FIR] Properly reports about conflicts in MPP setup

Checker for conflicting declarations will now check for the following
  scenarios too
- two expect declarations in different modules
- actual and non-expect declarations in different modules

^KT-63826 Fixed
This commit is contained in:
Dmitriy Novozhilov
2024-02-27 14:04:42 +02:00
committed by Space Team
parent 2febc807a1
commit 6cfe81de50
11 changed files with 76 additions and 11 deletions
@@ -349,6 +349,12 @@ public class FirOldFrontendMPPDiagnosticsWithLightTreeTestGenerated extends Abst
runTest("compiler/testData/diagnostics/tests/multiplatform/optionalExpectationDiagnostics.kt");
}
@Test
@TestMetadata("platformRedeclarationOfExpect.kt")
public void testPlatformRedeclarationOfExpect() {
runTest("compiler/testData/diagnostics/tests/multiplatform/platformRedeclarationOfExpect.kt");
}
@Test
@TestMetadata("privateTopLevelDeclarations.kt")
public void testPrivateTopLevelDeclarations() {
@@ -349,6 +349,12 @@ public class FirOldFrontendMPPDiagnosticsWithPsiTestGenerated extends AbstractFi
runTest("compiler/testData/diagnostics/tests/multiplatform/optionalExpectationDiagnostics.kt");
}
@Test
@TestMetadata("platformRedeclarationOfExpect.kt")
public void testPlatformRedeclarationOfExpect() {
runTest("compiler/testData/diagnostics/tests/multiplatform/platformRedeclarationOfExpect.kt");
}
@Test
@TestMetadata("privateTopLevelDeclarations.kt")
public void testPrivateTopLevelDeclarations() {