[K2] OPT_IN_MARKER_CAN_ONLY_BE_USED_AS_ANNOTATION_OR_ARGUMENT_IN_OPT_IN on an annotation import
Only tests added ^KT-59582
This commit is contained in:
committed by
Space Team
parent
fa20eb73f2
commit
c6d391c632
+6
@@ -43222,6 +43222,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/importStatement.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("importStatement2.kt")
|
||||
public void testImportStatement2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/importStatement2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("incorrectTargetsForExperimentalAnnotation.kt")
|
||||
public void testIncorrectTargetsForExperimentalAnnotation() throws Exception {
|
||||
|
||||
+6
@@ -43222,6 +43222,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/importStatement.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("importStatement2.kt")
|
||||
public void testImportStatement2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/importStatement2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("incorrectTargetsForExperimentalAnnotation.kt")
|
||||
public void testIncorrectTargetsForExperimentalAnnotation() throws Exception {
|
||||
|
||||
+6
@@ -41108,6 +41108,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/importStatement.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("importStatement2.kt")
|
||||
public void testImportStatement2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/importStatement2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("incorrectTargetsForExperimentalAnnotation.kt")
|
||||
public void testIncorrectTargetsForExperimentalAnnotation() throws Exception {
|
||||
|
||||
+6
@@ -41228,6 +41228,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/importStatement.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("importStatement2.kt")
|
||||
public void testImportStatement2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/importStatement2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("incorrectTargetsForExperimentalAnnotation.kt")
|
||||
public void testIncorrectTargetsForExperimentalAnnotation() throws Exception {
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// KT-59582
|
||||
|
||||
// FILE: a.kt
|
||||
@RequiresOptIn
|
||||
annotation class Ann()
|
||||
|
||||
// FILE: b.kt
|
||||
package b
|
||||
|
||||
import Ann
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// KT-59582
|
||||
|
||||
// FILE: a.kt
|
||||
@RequiresOptIn
|
||||
annotation class Ann()
|
||||
|
||||
// FILE: b.kt
|
||||
package b
|
||||
|
||||
import <!OPT_IN_MARKER_CAN_ONLY_BE_USED_AS_ANNOTATION_OR_ARGUMENT_IN_OPT_IN!>Ann<!>
|
||||
Generated
+6
@@ -43222,6 +43222,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/importStatement.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("importStatement2.kt")
|
||||
public void testImportStatement2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/importStatement2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("incorrectTargetsForExperimentalAnnotation.kt")
|
||||
public void testIncorrectTargetsForExperimentalAnnotation() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user