KT-55335: Add diagnostics test showing that issue is fixed in K2

^KT-55335: Fixed
This commit is contained in:
Stanislav Ruban
2023-01-03 19:16:50 +02:00
committed by Space Team
parent 965015bb1e
commit ca8cfa4596
6 changed files with 39 additions and 0 deletions
@@ -1344,6 +1344,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/annotations/inheritFromAnnotationClass2.kt");
}
@Test
@TestMetadata("InheritingAnnotationClass.kt")
public void testInheritingAnnotationClass() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/InheritingAnnotationClass.kt");
}
@Test
@TestMetadata("invalidTypesInAnnotationConstructor.kt")
public void testInvalidTypesInAnnotationConstructor() throws Exception {
@@ -1338,6 +1338,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
runTest("compiler/testData/diagnostics/tests/annotations/inheritFromAnnotationClass2.kt");
}
@Test
@TestMetadata("InheritingAnnotationClass.kt")
public void testInheritingAnnotationClass() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/InheritingAnnotationClass.kt");
}
@Test
@TestMetadata("invalidTypesInAnnotationConstructor.kt")
public void testInvalidTypesInAnnotationConstructor() throws Exception {
@@ -0,0 +1,3 @@
annotation class AnnKlass
class Child : <!FINAL_SUPERTYPE!>AnnKlass<!>
@@ -0,0 +1,3 @@
annotation class AnnKlass
class Child : <!FINAL_SUPERTYPE, SUPERTYPE_NOT_INITIALIZED!>AnnKlass<!>
@@ -0,0 +1,15 @@
package
public final annotation class AnnKlass : kotlin.Annotation {
public constructor AnnKlass()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
public final class Child : AnnKlass {
public constructor Child()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
@@ -1344,6 +1344,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
runTest("compiler/testData/diagnostics/tests/annotations/inheritFromAnnotationClass2.kt");
}
@Test
@TestMetadata("InheritingAnnotationClass.kt")
public void testInheritingAnnotationClass() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/InheritingAnnotationClass.kt");
}
@Test
@TestMetadata("invalidTypesInAnnotationConstructor.kt")
public void testInvalidTypesInAnnotationConstructor() throws Exception {