[LC] add tests on type parameter annotations

^KT-65112
This commit is contained in:
Dmitrii Gridin
2024-02-14 16:50:05 +01:00
committed by Space Team
parent d5705af8b1
commit 3e3c932bf6
23 changed files with 333 additions and 0 deletions
@@ -90,6 +90,12 @@ public class SymbolLightClassesByFqNameForLibraryTestGenerated extends AbstractS
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/BackingFields.kt");
}
@Test
@TestMetadata("ClassTypeParameterAnnotation.kt")
public void testClassTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/ClassTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("CompanionObject.kt")
public void testCompanionObject() throws Exception {
@@ -198,6 +204,12 @@ public class SymbolLightClassesByFqNameForLibraryTestGenerated extends AbstractS
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/InlineReified.kt");
}
@Test
@TestMetadata("InterfaceTypeParameterAnnotation.kt")
public void testInterfaceTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/InterfaceTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("InvalidJavaIdentifierAsAnnotationArgument.kt")
public void testInvalidJavaIdentifierAsAnnotationArgument() throws Exception {
@@ -240,6 +252,12 @@ public class SymbolLightClassesByFqNameForLibraryTestGenerated extends AbstractS
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/LocalFunctions.kt");
}
@Test
@TestMetadata("MethodTypeParameterAnnotation.kt")
public void testMethodTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/MethodTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("NestedObjects.kt")
public void testNestedObjects() throws Exception {
@@ -264,6 +282,12 @@ public class SymbolLightClassesByFqNameForLibraryTestGenerated extends AbstractS
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/PrivateObject.kt");
}
@Test
@TestMetadata("PropertyTypeParameterAnnotation.kt")
public void testPropertyTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/PropertyTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("PublishedApi.kt")
public void testPublishedApi() throws Exception {
@@ -367,6 +391,12 @@ public class SymbolLightClassesByFqNameForLibraryTestGenerated extends AbstractS
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/AllPrivate.kt");
}
@Test
@TestMetadata("FunctionTypeParameterAnnotation.kt")
public void testFunctionTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/FunctionTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("InternalFacadeClass.kt")
public void testInternalFacadeClass() throws Exception {
@@ -379,6 +409,12 @@ public class SymbolLightClassesByFqNameForLibraryTestGenerated extends AbstractS
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/MultiFile.kt");
}
@Test
@TestMetadata("PropertyTypeParameterAnnotation.kt")
public void testPropertyTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/PropertyTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("SingleFile.kt")
public void testSingleFile() throws Exception {
@@ -90,6 +90,12 @@ public class SymbolLightClassesEqualityByFqNameForLibraryTestGenerated extends A
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/BackingFields.kt");
}
@Test
@TestMetadata("ClassTypeParameterAnnotation.kt")
public void testClassTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/ClassTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("CompanionObject.kt")
public void testCompanionObject() throws Exception {
@@ -198,6 +204,12 @@ public class SymbolLightClassesEqualityByFqNameForLibraryTestGenerated extends A
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/InlineReified.kt");
}
@Test
@TestMetadata("InterfaceTypeParameterAnnotation.kt")
public void testInterfaceTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/InterfaceTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("InvalidJavaIdentifierAsAnnotationArgument.kt")
public void testInvalidJavaIdentifierAsAnnotationArgument() throws Exception {
@@ -240,6 +252,12 @@ public class SymbolLightClassesEqualityByFqNameForLibraryTestGenerated extends A
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/LocalFunctions.kt");
}
@Test
@TestMetadata("MethodTypeParameterAnnotation.kt")
public void testMethodTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/MethodTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("NestedObjects.kt")
public void testNestedObjects() throws Exception {
@@ -264,6 +282,12 @@ public class SymbolLightClassesEqualityByFqNameForLibraryTestGenerated extends A
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/PrivateObject.kt");
}
@Test
@TestMetadata("PropertyTypeParameterAnnotation.kt")
public void testPropertyTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/PropertyTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("PublishedApi.kt")
public void testPublishedApi() throws Exception {
@@ -367,6 +391,12 @@ public class SymbolLightClassesEqualityByFqNameForLibraryTestGenerated extends A
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/AllPrivate.kt");
}
@Test
@TestMetadata("FunctionTypeParameterAnnotation.kt")
public void testFunctionTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/FunctionTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("InternalFacadeClass.kt")
public void testInternalFacadeClass() throws Exception {
@@ -379,6 +409,12 @@ public class SymbolLightClassesEqualityByFqNameForLibraryTestGenerated extends A
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/MultiFile.kt");
}
@Test
@TestMetadata("PropertyTypeParameterAnnotation.kt")
public void testPropertyTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/PropertyTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("SingleFile.kt")
public void testSingleFile() throws Exception {
@@ -90,6 +90,12 @@ public class SymbolLightClassesParentingByFqNameForLibraryTestGenerated extends
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/BackingFields.kt");
}
@Test
@TestMetadata("ClassTypeParameterAnnotation.kt")
public void testClassTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/ClassTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("CompanionObject.kt")
public void testCompanionObject() throws Exception {
@@ -198,6 +204,12 @@ public class SymbolLightClassesParentingByFqNameForLibraryTestGenerated extends
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/InlineReified.kt");
}
@Test
@TestMetadata("InterfaceTypeParameterAnnotation.kt")
public void testInterfaceTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/InterfaceTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("InvalidJavaIdentifierAsAnnotationArgument.kt")
public void testInvalidJavaIdentifierAsAnnotationArgument() throws Exception {
@@ -240,6 +252,12 @@ public class SymbolLightClassesParentingByFqNameForLibraryTestGenerated extends
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/LocalFunctions.kt");
}
@Test
@TestMetadata("MethodTypeParameterAnnotation.kt")
public void testMethodTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/MethodTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("NestedObjects.kt")
public void testNestedObjects() throws Exception {
@@ -264,6 +282,12 @@ public class SymbolLightClassesParentingByFqNameForLibraryTestGenerated extends
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/PrivateObject.kt");
}
@Test
@TestMetadata("PropertyTypeParameterAnnotation.kt")
public void testPropertyTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/PropertyTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("PublishedApi.kt")
public void testPublishedApi() throws Exception {
@@ -367,6 +391,12 @@ public class SymbolLightClassesParentingByFqNameForLibraryTestGenerated extends
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/AllPrivate.kt");
}
@Test
@TestMetadata("FunctionTypeParameterAnnotation.kt")
public void testFunctionTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/FunctionTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("InternalFacadeClass.kt")
public void testInternalFacadeClass() throws Exception {
@@ -379,6 +409,12 @@ public class SymbolLightClassesParentingByFqNameForLibraryTestGenerated extends
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/MultiFile.kt");
}
@Test
@TestMetadata("PropertyTypeParameterAnnotation.kt")
public void testPropertyTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/PropertyTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("SingleFile.kt")
public void testSingleFile() throws Exception {
@@ -90,6 +90,12 @@ public class SymbolLightClassesByFqNameForSourceTestGenerated extends AbstractSy
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/BackingFields.kt");
}
@Test
@TestMetadata("ClassTypeParameterAnnotation.kt")
public void testClassTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/ClassTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("CompanionObject.kt")
public void testCompanionObject() throws Exception {
@@ -198,6 +204,12 @@ public class SymbolLightClassesByFqNameForSourceTestGenerated extends AbstractSy
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/InlineReified.kt");
}
@Test
@TestMetadata("InterfaceTypeParameterAnnotation.kt")
public void testInterfaceTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/InterfaceTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("InvalidJavaIdentifierAsAnnotationArgument.kt")
public void testInvalidJavaIdentifierAsAnnotationArgument() throws Exception {
@@ -240,6 +252,12 @@ public class SymbolLightClassesByFqNameForSourceTestGenerated extends AbstractSy
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/LocalFunctions.kt");
}
@Test
@TestMetadata("MethodTypeParameterAnnotation.kt")
public void testMethodTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/MethodTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("NestedObjects.kt")
public void testNestedObjects() throws Exception {
@@ -264,6 +282,12 @@ public class SymbolLightClassesByFqNameForSourceTestGenerated extends AbstractSy
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/PrivateObject.kt");
}
@Test
@TestMetadata("PropertyTypeParameterAnnotation.kt")
public void testPropertyTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/PropertyTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("PublishedApi.kt")
public void testPublishedApi() throws Exception {
@@ -557,6 +581,12 @@ public class SymbolLightClassesByFqNameForSourceTestGenerated extends AbstractSy
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/AllPrivate.kt");
}
@Test
@TestMetadata("FunctionTypeParameterAnnotation.kt")
public void testFunctionTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/FunctionTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("InternalFacadeClass.kt")
public void testInternalFacadeClass() throws Exception {
@@ -569,6 +599,12 @@ public class SymbolLightClassesByFqNameForSourceTestGenerated extends AbstractSy
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/MultiFile.kt");
}
@Test
@TestMetadata("PropertyTypeParameterAnnotation.kt")
public void testPropertyTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/PropertyTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("SingleFile.kt")
public void testSingleFile() throws Exception {
@@ -90,6 +90,12 @@ public class SymbolLightClassesEqualityByFqNameForSourceTestGenerated extends Ab
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/BackingFields.kt");
}
@Test
@TestMetadata("ClassTypeParameterAnnotation.kt")
public void testClassTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/ClassTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("CompanionObject.kt")
public void testCompanionObject() throws Exception {
@@ -198,6 +204,12 @@ public class SymbolLightClassesEqualityByFqNameForSourceTestGenerated extends Ab
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/InlineReified.kt");
}
@Test
@TestMetadata("InterfaceTypeParameterAnnotation.kt")
public void testInterfaceTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/InterfaceTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("InvalidJavaIdentifierAsAnnotationArgument.kt")
public void testInvalidJavaIdentifierAsAnnotationArgument() throws Exception {
@@ -240,6 +252,12 @@ public class SymbolLightClassesEqualityByFqNameForSourceTestGenerated extends Ab
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/LocalFunctions.kt");
}
@Test
@TestMetadata("MethodTypeParameterAnnotation.kt")
public void testMethodTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/MethodTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("NestedObjects.kt")
public void testNestedObjects() throws Exception {
@@ -264,6 +282,12 @@ public class SymbolLightClassesEqualityByFqNameForSourceTestGenerated extends Ab
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/PrivateObject.kt");
}
@Test
@TestMetadata("PropertyTypeParameterAnnotation.kt")
public void testPropertyTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/PropertyTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("PublishedApi.kt")
public void testPublishedApi() throws Exception {
@@ -557,6 +581,12 @@ public class SymbolLightClassesEqualityByFqNameForSourceTestGenerated extends Ab
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/AllPrivate.kt");
}
@Test
@TestMetadata("FunctionTypeParameterAnnotation.kt")
public void testFunctionTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/FunctionTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("InternalFacadeClass.kt")
public void testInternalFacadeClass() throws Exception {
@@ -569,6 +599,12 @@ public class SymbolLightClassesEqualityByFqNameForSourceTestGenerated extends Ab
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/MultiFile.kt");
}
@Test
@TestMetadata("PropertyTypeParameterAnnotation.kt")
public void testPropertyTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/PropertyTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("SingleFile.kt")
public void testSingleFile() throws Exception {
@@ -90,6 +90,12 @@ public class SymbolLightClassesParentingByFqNameForSourceTestGenerated extends A
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/BackingFields.kt");
}
@Test
@TestMetadata("ClassTypeParameterAnnotation.kt")
public void testClassTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/ClassTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("CompanionObject.kt")
public void testCompanionObject() throws Exception {
@@ -198,6 +204,12 @@ public class SymbolLightClassesParentingByFqNameForSourceTestGenerated extends A
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/InlineReified.kt");
}
@Test
@TestMetadata("InterfaceTypeParameterAnnotation.kt")
public void testInterfaceTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/InterfaceTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("InvalidJavaIdentifierAsAnnotationArgument.kt")
public void testInvalidJavaIdentifierAsAnnotationArgument() throws Exception {
@@ -240,6 +252,12 @@ public class SymbolLightClassesParentingByFqNameForSourceTestGenerated extends A
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/LocalFunctions.kt");
}
@Test
@TestMetadata("MethodTypeParameterAnnotation.kt")
public void testMethodTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/MethodTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("NestedObjects.kt")
public void testNestedObjects() throws Exception {
@@ -264,6 +282,12 @@ public class SymbolLightClassesParentingByFqNameForSourceTestGenerated extends A
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/PrivateObject.kt");
}
@Test
@TestMetadata("PropertyTypeParameterAnnotation.kt")
public void testPropertyTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/PropertyTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("PublishedApi.kt")
public void testPublishedApi() throws Exception {
@@ -557,6 +581,12 @@ public class SymbolLightClassesParentingByFqNameForSourceTestGenerated extends A
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/AllPrivate.kt");
}
@Test
@TestMetadata("FunctionTypeParameterAnnotation.kt")
public void testFunctionTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/FunctionTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("InternalFacadeClass.kt")
public void testInternalFacadeClass() throws Exception {
@@ -569,6 +599,12 @@ public class SymbolLightClassesParentingByFqNameForSourceTestGenerated extends A
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/MultiFile.kt");
}
@Test
@TestMetadata("PropertyTypeParameterAnnotation.kt")
public void testPropertyTypeParameterAnnotation() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/facades/PropertyTypeParameterAnnotation.kt");
}
@Test
@TestMetadata("SingleFile.kt")
public void testSingleFile() throws Exception {