[FIR] Ensure KT-62814 is not reproducible

^KT-62814 Obsolete
This commit is contained in:
Nikolay Lunyak
2024-01-08 12:04:18 +02:00
committed by Space Team
parent 8cc9272018
commit 502b422b6b
6 changed files with 41 additions and 0 deletions
@@ -225,6 +225,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/compilerCrashParameterType.kt");
}
@Test
@TestMetadata("conflictingOverloadsPrivateFunctions.kt")
public void testConflictingOverloadsPrivateFunctions() throws Exception {
runTest("compiler/testData/diagnostics/tests/conflictingOverloadsPrivateFunctions.kt");
}
@Test
@TestMetadata("Constants.kt")
public void testConstants() throws Exception {
@@ -225,6 +225,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/compilerCrashParameterType.kt");
}
@Test
@TestMetadata("conflictingOverloadsPrivateFunctions.kt")
public void testConflictingOverloadsPrivateFunctions() throws Exception {
runTest("compiler/testData/diagnostics/tests/conflictingOverloadsPrivateFunctions.kt");
}
@Test
@TestMetadata("Constants.kt")
public void testConstants() throws Exception {
@@ -225,6 +225,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
runTest("compiler/testData/diagnostics/tests/compilerCrashParameterType.kt");
}
@Test
@TestMetadata("conflictingOverloadsPrivateFunctions.kt")
public void testConflictingOverloadsPrivateFunctions() throws Exception {
runTest("compiler/testData/diagnostics/tests/conflictingOverloadsPrivateFunctions.kt");
}
@Test
@TestMetadata("Constants.kt")
public void testConstants() throws Exception {
@@ -225,6 +225,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
runTest("compiler/testData/diagnostics/tests/compilerCrashParameterType.kt");
}
@Test
@TestMetadata("conflictingOverloadsPrivateFunctions.kt")
public void testConflictingOverloadsPrivateFunctions() throws Exception {
runTest("compiler/testData/diagnostics/tests/conflictingOverloadsPrivateFunctions.kt");
}
@Test
@TestMetadata("Constants.kt")
public void testConstants() throws Exception {
@@ -0,0 +1,11 @@
// FIR_IDENTICAL
// ISSUE: KT-62814
class K2DuplicatesOkayBug {
<!CONFLICTING_OVERLOADS!>private fun startBackgroundSync()<!> {
//todo
}
<!CONFLICTING_OVERLOADS!>private fun startBackgroundSync()<!> {
//todo
}
}
@@ -225,6 +225,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
runTest("compiler/testData/diagnostics/tests/compilerCrashParameterType.kt");
}
@Test
@TestMetadata("conflictingOverloadsPrivateFunctions.kt")
public void testConflictingOverloadsPrivateFunctions() throws Exception {
runTest("compiler/testData/diagnostics/tests/conflictingOverloadsPrivateFunctions.kt");
}
@Test
@TestMetadata("Constants.kt")
public void testConstants() throws Exception {