K2: reproduce KT-60604
This commit is contained in:
committed by
Space Team
parent
94ce4c06a7
commit
bb8002d9f1
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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()
|
||||
Generated
+6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user