K1/K2: add tests for KT-58767
This commit is contained in:
committed by
Space Team
parent
6268cfedab
commit
19fe605a3e
+6
@@ -41919,6 +41919,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/annotations/subclassOptInRequired/NotApiMarkerAsArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Typealias.kt")
|
||||
public void testTypealias() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/annotations/subclassOptInRequired/Typealias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("UsageOptInIsNotImplied.kt")
|
||||
public void testUsageOptInIsNotImplied() throws Exception {
|
||||
|
||||
+6
@@ -41919,6 +41919,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/annotations/subclassOptInRequired/NotApiMarkerAsArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Typealias.kt")
|
||||
public void testTypealias() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/annotations/subclassOptInRequired/Typealias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("UsageOptInIsNotImplied.kt")
|
||||
public void testUsageOptInIsNotImplied() throws Exception {
|
||||
|
||||
+6
@@ -39645,6 +39645,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/annotations/subclassOptInRequired/NotApiMarkerAsArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Typealias.kt")
|
||||
public void testTypealias() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/annotations/subclassOptInRequired/Typealias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("UsageOptInIsNotImplied.kt")
|
||||
public void testUsageOptInIsNotImplied() throws Exception {
|
||||
|
||||
+6
@@ -39765,6 +39765,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/annotations/subclassOptInRequired/NotApiMarkerAsArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Typealias.kt")
|
||||
public void testTypealias() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/annotations/subclassOptInRequired/Typealias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("UsageOptInIsNotImplied.kt")
|
||||
public void testUsageOptInIsNotImplied() throws Exception {
|
||||
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
@RequiresOptIn
|
||||
annotation class ApiMarker
|
||||
|
||||
@SubclassOptInRequired(ApiMarker::class)
|
||||
interface Interface
|
||||
|
||||
typealias TypeAlias = Interface
|
||||
|
||||
class InterfaceInheritorB: <!OPT_IN_USAGE_ERROR!>TypeAlias<!>
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
@RequiresOptIn
|
||||
annotation class ApiMarker
|
||||
|
||||
@SubclassOptInRequired(ApiMarker::class)
|
||||
interface Interface
|
||||
|
||||
typealias TypeAlias = Interface
|
||||
|
||||
class InterfaceInheritorB: TypeAlias
|
||||
Generated
+6
@@ -41919,6 +41919,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/annotations/subclassOptInRequired/NotApiMarkerAsArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Typealias.kt")
|
||||
public void testTypealias() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/annotations/subclassOptInRequired/Typealias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("UsageOptInIsNotImplied.kt")
|
||||
public void testUsageOptInIsNotImplied() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user