K2: reproduce KT-60604

This commit is contained in:
Mikhail Glukhikh
2023-11-14 08:57:16 +01:00
committed by Space Team
parent 94ce4c06a7
commit bb8002d9f1
7 changed files with 42 additions and 0 deletions
@@ -20065,6 +20065,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/inline/nonPublicMember"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
}
@Test
@TestMetadata("inAnnotation.kt")
public void testInAnnotation() throws Exception {
runTest("compiler/testData/diagnostics/tests/inline/nonPublicMember/inAnnotation.kt");
}
@Test
@TestMetadata("inNonPublicClass.kt")
public void testInNonPublicClass() throws Exception {
@@ -20065,6 +20065,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/inline/nonPublicMember"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
}
@Test
@TestMetadata("inAnnotation.kt")
public void testInAnnotation() throws Exception {
runTest("compiler/testData/diagnostics/tests/inline/nonPublicMember/inAnnotation.kt");
}
@Test
@TestMetadata("inNonPublicClass.kt")
public void testInNonPublicClass() throws Exception {
@@ -20059,6 +20059,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/inline/nonPublicMember"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
}
@Test
@TestMetadata("inAnnotation.kt")
public void testInAnnotation() throws Exception {
runTest("compiler/testData/diagnostics/tests/inline/nonPublicMember/inAnnotation.kt");
}
@Test
@TestMetadata("inNonPublicClass.kt")
public void testInNonPublicClass() throws Exception {
@@ -20065,6 +20065,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/inline/nonPublicMember"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
}
@Test
@TestMetadata("inAnnotation.kt")
public void testInAnnotation() throws Exception {
runTest("compiler/testData/diagnostics/tests/inline/nonPublicMember/inAnnotation.kt");
}
@Test
@TestMetadata("inNonPublicClass.kt")
public void testInNonPublicClass() throws Exception {
@@ -0,0 +1,6 @@
// ISSUE: KT-60604
private const val MESSAGE = "This is deprecated"
@Deprecated(<!NON_PUBLIC_CALL_FROM_PUBLIC_INLINE!>MESSAGE<!>)
inline fun hello(f: () -> Int): Int = f()
@@ -0,0 +1,6 @@
// ISSUE: KT-60604
private const val MESSAGE = "This is deprecated"
@Deprecated(MESSAGE)
inline fun hello(f: () -> Int): Int = f()
@@ -20065,6 +20065,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/inline/nonPublicMember"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
}
@Test
@TestMetadata("inAnnotation.kt")
public void testInAnnotation() throws Exception {
runTest("compiler/testData/diagnostics/tests/inline/nonPublicMember/inAnnotation.kt");
}
@Test
@TestMetadata("inNonPublicClass.kt")
public void testInNonPublicClass() throws Exception {