[FIR] Ensure KT-66161 is not reproducible in the compiler

^KT-66161


Merge-request: KT-MR-14730
Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com>
This commit is contained in:
Nikolay Lunyak
2024-03-07 15:10:18 +00:00
committed by Space Team
parent aee87468a6
commit 7f12af9452
6 changed files with 36 additions and 0 deletions
@@ -495,6 +495,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/ForRangeConventions.kt");
}
@Test
@TestMetadata("fpRedundantProtected.kt")
public void testFpRedundantProtected() {
runTest("compiler/testData/diagnostics/tests/fpRedundantProtected.kt");
}
@Test
@TestMetadata("FreeFunctionCalledAsExtension.kt")
public void testFreeFunctionCalledAsExtension() {
@@ -495,6 +495,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/ForRangeConventions.kt");
}
@Test
@TestMetadata("fpRedundantProtected.kt")
public void testFpRedundantProtected() {
runTest("compiler/testData/diagnostics/tests/fpRedundantProtected.kt");
}
@Test
@TestMetadata("FreeFunctionCalledAsExtension.kt")
public void testFreeFunctionCalledAsExtension() {
@@ -495,6 +495,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
runTest("compiler/testData/diagnostics/tests/ForRangeConventions.kt");
}
@Test
@TestMetadata("fpRedundantProtected.kt")
public void testFpRedundantProtected() {
runTest("compiler/testData/diagnostics/tests/fpRedundantProtected.kt");
}
@Test
@TestMetadata("FreeFunctionCalledAsExtension.kt")
public void testFreeFunctionCalledAsExtension() {
@@ -495,6 +495,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
runTest("compiler/testData/diagnostics/tests/ForRangeConventions.kt");
}
@Test
@TestMetadata("fpRedundantProtected.kt")
public void testFpRedundantProtected() {
runTest("compiler/testData/diagnostics/tests/fpRedundantProtected.kt");
}
@Test
@TestMetadata("FreeFunctionCalledAsExtension.kt")
public void testFreeFunctionCalledAsExtension() {
@@ -0,0 +1,6 @@
// FIR_IDENTICAL
// ISSUE: KT-66161
private open class A {
protected fun test() {}
}
@@ -495,6 +495,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
runTest("compiler/testData/diagnostics/tests/ForRangeConventions.kt");
}
@Test
@TestMetadata("fpRedundantProtected.kt")
public void testFpRedundantProtected() {
runTest("compiler/testData/diagnostics/tests/fpRedundantProtected.kt");
}
@Test
@TestMetadata("FreeFunctionCalledAsExtension.kt")
public void testFreeFunctionCalledAsExtension() {