Remove IncDecOperatorsInExpectClass test

It is incorrect because has expect and actual in same module,
which results in ACTUAL_WITHOUT_EXPECT reported in FIR.
But there is already same test
`multiplatform/incDecOperatorsInExpectClass.kt`, so there is no need
to fix and maintain test `IncDecOperatorsInExpectClass`.

^KT-60075 Fixed
This commit is contained in:
Roman Efremov
2023-09-14 09:44:17 +02:00
committed by Space Team
parent 30e49c0879
commit 371db10330
7 changed files with 0 additions and 56 deletions
@@ -471,12 +471,6 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/IncDec.kt");
}
@Test
@TestMetadata("IncDecOperatorsInExpectClass.kt")
public void testIncDecOperatorsInExpectClass() throws Exception {
runTest("compiler/testData/diagnostics/tests/IncDecOperatorsInExpectClass.kt");
}
@Test
@TestMetadata("IncorrectCharacterLiterals.kt")
public void testIncorrectCharacterLiterals() throws Exception {
@@ -471,12 +471,6 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/IncDec.kt");
}
@Test
@TestMetadata("IncDecOperatorsInExpectClass.kt")
public void testIncDecOperatorsInExpectClass() throws Exception {
runTest("compiler/testData/diagnostics/tests/IncDecOperatorsInExpectClass.kt");
}
@Test
@TestMetadata("IncorrectCharacterLiterals.kt")
public void testIncorrectCharacterLiterals() throws Exception {
@@ -471,12 +471,6 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
runTest("compiler/testData/diagnostics/tests/IncDec.kt");
}
@Test
@TestMetadata("IncDecOperatorsInExpectClass.kt")
public void testIncDecOperatorsInExpectClass() throws Exception {
runTest("compiler/testData/diagnostics/tests/IncDecOperatorsInExpectClass.kt");
}
@Test
@TestMetadata("IncorrectCharacterLiterals.kt")
public void testIncorrectCharacterLiterals() throws Exception {
@@ -471,12 +471,6 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
runTest("compiler/testData/diagnostics/tests/IncDec.kt");
}
@Test
@TestMetadata("IncDecOperatorsInExpectClass.kt")
public void testIncDecOperatorsInExpectClass() throws Exception {
runTest("compiler/testData/diagnostics/tests/IncDecOperatorsInExpectClass.kt");
}
@Test
@TestMetadata("IncorrectCharacterLiterals.kt")
public void testIncorrectCharacterLiterals() throws Exception {
@@ -1,13 +0,0 @@
// In FIR, declaring the same `expect` and `actual` classes in one compiler module is not possible (see KT-55177). Hence the `.fir.kt` test
// expects a diagnostic here. The multi-module test corresponding to this test is called: `multiplatform/incDecOperatorsInExpectClass.kt`.
// !LANGUAGE: +MultiPlatformProjects
// SKIP_TXT
// Issue: KT-49714
expect class Counter {
operator fun inc(): Counter
operator fun dec(): Counter
}
actual typealias <!ACTUAL_WITHOUT_EXPECT!>Counter<!> = Int
@@ -1,13 +0,0 @@
// In FIR, declaring the same `expect` and `actual` classes in one compiler module is not possible (see KT-55177). Hence the `.fir.kt` test
// expects a diagnostic here. The multi-module test corresponding to this test is called: `multiplatform/incDecOperatorsInExpectClass.kt`.
// !LANGUAGE: +MultiPlatformProjects
// SKIP_TXT
// Issue: KT-49714
expect <!EXPECT_AND_ACTUAL_IN_THE_SAME_MODULE!>class Counter<!> {
operator fun inc(): Counter
operator fun dec(): Counter
}
actual typealias <!EXPECT_AND_ACTUAL_IN_THE_SAME_MODULE!>Counter<!> = Int
@@ -471,12 +471,6 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
runTest("compiler/testData/diagnostics/tests/IncDec.kt");
}
@Test
@TestMetadata("IncDecOperatorsInExpectClass.kt")
public void testIncDecOperatorsInExpectClass() throws Exception {
runTest("compiler/testData/diagnostics/tests/IncDecOperatorsInExpectClass.kt");
}
@Test
@TestMetadata("IncorrectCharacterLiterals.kt")
public void testIncorrectCharacterLiterals() throws Exception {