[IR] Add new tests on inline to check issues with type parameters
#KT-58241
This commit is contained in:
+46
@@ -5771,6 +5771,52 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
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.JVM, 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")
|
||||
|
||||
+46
@@ -5771,6 +5771,52 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
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.JVM, 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")
|
||||
|
||||
+46
@@ -5849,6 +5849,52 @@ public class IrBlackBoxInlineCodegenWithBytecodeInlinerTestGenerated extends Abs
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
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.JVM_IR, 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")
|
||||
|
||||
+46
@@ -5849,6 +5849,52 @@ public class IrBlackBoxInlineCodegenWithIrInlinerTestGenerated extends AbstractI
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
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.JVM_IR, 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")
|
||||
|
||||
+46
@@ -5849,6 +5849,52 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
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.JVM_IR, 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")
|
||||
|
||||
+46
@@ -5849,6 +5849,52 @@ public class IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends Ab
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
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.JVM_IR, 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")
|
||||
|
||||
+46
@@ -5849,6 +5849,52 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
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.JVM_MULTI_MODULE_IR_AGAINST_OLD, 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")
|
||||
|
||||
+46
@@ -5771,6 +5771,52 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
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.JVM_MULTI_MODULE_OLD_AGAINST_IR, 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