[IR] Add new tests on inline to check issues with type parameters
#KT-58241
This commit is contained in:
+49
@@ -46164,6 +46164,55 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("frontend-fir")
|
||||
@FirPipeline()
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class TypeParameters {
|
||||
@Test
|
||||
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousObject.kt")
|
||||
public void testAnonymousObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("basic.kt")
|
||||
public void testBasic() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("projectionTypeArguments.kt")
|
||||
public void testProjectionTypeArguments() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("severalUpperBounds.kt")
|
||||
public void testSeveralUpperBounds() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("uncheckedCastToNothing.kt")
|
||||
public void testUncheckedCastToNothing() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+51
@@ -47378,6 +47378,57 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("frontend-fir")
|
||||
@FirPipeline()
|
||||
@UseExtTestCaseGroupProvider()
|
||||
@UsePartialLinkage(mode = Mode.DISABLED)
|
||||
@Tag("no-partial-linkage-may-be-skipped")
|
||||
public class TypeParameters {
|
||||
@Test
|
||||
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousObject.kt")
|
||||
public void testAnonymousObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("basic.kt")
|
||||
public void testBasic() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("projectionTypeArguments.kt")
|
||||
public void testProjectionTypeArguments() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("severalUpperBounds.kt")
|
||||
public void testSeveralUpperBounds() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("uncheckedCastToNothing.kt")
|
||||
public void testUncheckedCastToNothing() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+48
@@ -45558,6 +45558,54 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
@DisabledTestsIfProperty(sourceLocations = { "compiler/testData/codegen/box/coroutines/featureIntersection/defaultExpect.kt", "compiler/testData/codegen/box/multiplatform/defaultArguments/*.kt", "compiler/testData/codegen/box/multiplatform/migratedOldTests/*.kt", "compiler/testData/codegen/boxInline/multiplatform/defaultArguments/receiversAndParametersInLambda.kt" }, property = ClassLevelProperty.TEST_MODE, propertyValue = "ONE_STAGE_MULTI_MODULE")
|
||||
public class TypeParameters {
|
||||
@Test
|
||||
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousObject.kt")
|
||||
public void testAnonymousObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("basic.kt")
|
||||
public void testBasic() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("projectionTypeArguments.kt")
|
||||
public void testProjectionTypeArguments() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("severalUpperBounds.kt")
|
||||
public void testSeveralUpperBounds() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("uncheckedCastToNothing.kt")
|
||||
public void testUncheckedCastToNothing() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+49
@@ -46165,6 +46165,55 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
@UsePartialLinkage(mode = Mode.DISABLED)
|
||||
@Tag("no-partial-linkage-may-be-skipped")
|
||||
public class TypeParameters {
|
||||
@Test
|
||||
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousObject.kt")
|
||||
public void testAnonymousObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("basic.kt")
|
||||
public void testBasic() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("projectionTypeArguments.kt")
|
||||
public void testProjectionTypeArguments() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("severalUpperBounds.kt")
|
||||
public void testSeveralUpperBounds() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("uncheckedCastToNothing.kt")
|
||||
public void testUncheckedCastToNothing() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Reference in New Issue
Block a user