KT-55335: Add diagnostics test showing that issue is fixed in K2
^KT-55335: Fixed
This commit is contained in:
committed by
Space Team
parent
965015bb1e
commit
ca8cfa4596
+6
@@ -1344,6 +1344,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
|||||||
runTest("compiler/testData/diagnostics/tests/annotations/inheritFromAnnotationClass2.kt");
|
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
|
@Test
|
||||||
@TestMetadata("invalidTypesInAnnotationConstructor.kt")
|
@TestMetadata("invalidTypesInAnnotationConstructor.kt")
|
||||||
public void testInvalidTypesInAnnotationConstructor() throws Exception {
|
public void testInvalidTypesInAnnotationConstructor() throws Exception {
|
||||||
|
|||||||
+6
@@ -1338,6 +1338,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
|||||||
runTest("compiler/testData/diagnostics/tests/annotations/inheritFromAnnotationClass2.kt");
|
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
|
@Test
|
||||||
@TestMetadata("invalidTypesInAnnotationConstructor.kt")
|
@TestMetadata("invalidTypesInAnnotationConstructor.kt")
|
||||||
public void testInvalidTypesInAnnotationConstructor() throws Exception {
|
public void testInvalidTypesInAnnotationConstructor() throws Exception {
|
||||||
|
|||||||
+3
@@ -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<!>
|
||||||
+15
@@ -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
|
||||||
|
}
|
||||||
Generated
+6
@@ -1344,6 +1344,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
runTest("compiler/testData/diagnostics/tests/annotations/inheritFromAnnotationClass2.kt");
|
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
|
@Test
|
||||||
@TestMetadata("invalidTypesInAnnotationConstructor.kt")
|
@TestMetadata("invalidTypesInAnnotationConstructor.kt")
|
||||||
public void testInvalidTypesInAnnotationConstructor() throws Exception {
|
public void testInvalidTypesInAnnotationConstructor() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user