K2: add test for already fixed missing diagnostic issue
#KT-55956
This commit is contained in:
committed by
Space Team
parent
4b7234d27e
commit
85ca5294ef
+6
@@ -27098,6 +27098,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt557.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt55956.kt")
|
||||
public void testKt55956() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt55956.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt571.kt")
|
||||
public void testKt571() throws Exception {
|
||||
|
||||
+6
@@ -27098,6 +27098,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt557.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt55956.kt")
|
||||
public void testKt55956() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt55956.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt571.kt")
|
||||
public void testKt571() throws Exception {
|
||||
|
||||
+6
@@ -27098,6 +27098,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt557.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt55956.kt")
|
||||
public void testKt55956() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt55956.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt571.kt")
|
||||
public void testKt571() throws Exception {
|
||||
|
||||
+6
@@ -27110,6 +27110,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt557.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt55956.kt")
|
||||
public void testKt55956() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt55956.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt571.kt")
|
||||
public void testKt571() throws Exception {
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
// FIR_IDENTICAL
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
<!WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@file:MyExperimentalAPI<!>
|
||||
|
||||
@RequiresOptIn
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
annotation class MyExperimentalAPI
|
||||
|
||||
@MyExperimentalAPI
|
||||
class Some {
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
class Bar {
|
||||
@OptIn(MyExperimentalAPI::class)
|
||||
fun bar() {
|
||||
Some().foo()
|
||||
}
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {}
|
||||
Generated
+6
@@ -28690,6 +28690,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt557.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt55956.kt")
|
||||
public void testKt55956() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt55956.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt571.kt")
|
||||
public void testKt571() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user