K2: Add new tests for PCLA implementation

Many of them have been found & minimized at FP tests/user projects

^KT-59791 Fixed
This commit is contained in:
Denis.Zharkov
2023-12-19 17:13:35 +01:00
committed by Space Team
parent 90feeab076
commit 7e4d9d9f64
87 changed files with 2776 additions and 60 deletions
@@ -1861,6 +1861,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/receiverUsesOuterTVButReturnTypeIsProper.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/builderInference/issues")
@TestDataPath("$PROJECT_ROOT")
@@ -2074,12 +2080,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/builderInference/issues/kt57707.kt");
}
@Test
@TestMetadata("kt57709.kt")
public void testKt57709() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/issues/kt57709.kt");
}
@Test
@TestMetadata("kt57834.kt")
public void testKt57834() throws Exception {
@@ -1861,6 +1861,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/receiverUsesOuterTVButReturnTypeIsProper.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/builderInference/issues")
@TestDataPath("$PROJECT_ROOT")
@@ -2074,12 +2080,6 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
runTest("compiler/testData/codegen/box/builderInference/issues/kt57707.kt");
}
@Test
@TestMetadata("kt57709.kt")
public void testKt57709() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/issues/kt57709.kt");
}
@Test
@TestMetadata("kt57834.kt")
public void testKt57834() throws Exception {
@@ -2470,6 +2470,12 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT
runTest("compiler/testData/ir/irText/firProblems/LocalSuspendFun.kt");
}
@Test
@TestMetadata("noErrorTypeAfterCaptureApproximation.kt")
public void testNoErrorTypeAfterCaptureApproximation() throws Exception {
runTest("compiler/testData/ir/irText/firProblems/noErrorTypeAfterCaptureApproximation.kt");
}
@Test
@TestMetadata("readWriteProperty.kt")
public void testReadWriteProperty() throws Exception {
@@ -2874,6 +2880,12 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT
runTest("compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.kt");
}
@Test
@TestMetadata("noSyntheticTypeParameterLeftAfterPCLA.kt")
public void testNoSyntheticTypeParameterLeftAfterPCLA() throws Exception {
runTest("compiler/testData/ir/irText/regressions/noSyntheticTypeParameterLeftAfterPCLA.kt");
}
@Test
@TestMetadata("typeAliasCtorForGenericClass.kt")
public void testTypeAliasCtorForGenericClass() throws Exception {
@@ -2470,6 +2470,12 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest {
runTest("compiler/testData/ir/irText/firProblems/LocalSuspendFun.kt");
}
@Test
@TestMetadata("noErrorTypeAfterCaptureApproximation.kt")
public void testNoErrorTypeAfterCaptureApproximation() throws Exception {
runTest("compiler/testData/ir/irText/firProblems/noErrorTypeAfterCaptureApproximation.kt");
}
@Test
@TestMetadata("readWriteProperty.kt")
public void testReadWriteProperty() throws Exception {
@@ -2874,6 +2880,12 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest {
runTest("compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.kt");
}
@Test
@TestMetadata("noSyntheticTypeParameterLeftAfterPCLA.kt")
public void testNoSyntheticTypeParameterLeftAfterPCLA() throws Exception {
runTest("compiler/testData/ir/irText/regressions/noSyntheticTypeParameterLeftAfterPCLA.kt");
}
@Test
@TestMetadata("typeAliasCtorForGenericClass.kt")
public void testTypeAliasCtorForGenericClass() throws Exception {
@@ -2470,6 +2470,12 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest {
runTest("compiler/testData/ir/irText/firProblems/LocalSuspendFun.kt");
}
@Test
@TestMetadata("noErrorTypeAfterCaptureApproximation.kt")
public void testNoErrorTypeAfterCaptureApproximation() throws Exception {
runTest("compiler/testData/ir/irText/firProblems/noErrorTypeAfterCaptureApproximation.kt");
}
@Test
@TestMetadata("readWriteProperty.kt")
public void testReadWriteProperty() throws Exception {
@@ -2874,6 +2880,12 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest {
runTest("compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.kt");
}
@Test
@TestMetadata("noSyntheticTypeParameterLeftAfterPCLA.kt")
public void testNoSyntheticTypeParameterLeftAfterPCLA() throws Exception {
runTest("compiler/testData/ir/irText/regressions/noSyntheticTypeParameterLeftAfterPCLA.kt");
}
@Test
@TestMetadata("typeAliasCtorForGenericClass.kt")
public void testTypeAliasCtorForGenericClass() throws Exception {
@@ -1861,6 +1861,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/receiverUsesOuterTVButReturnTypeIsProper.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/builderInference/issues")
@TestDataPath("$PROJECT_ROOT")
@@ -2074,12 +2080,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/builderInference/issues/kt57707.kt");
}
@Test
@TestMetadata("kt57709.kt")
public void testKt57709() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/issues/kt57709.kt");
}
@Test
@TestMetadata("kt57834.kt")
public void testKt57834() throws Exception {
@@ -1861,6 +1861,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/receiverUsesOuterTVButReturnTypeIsProper.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/builderInference/issues")
@TestDataPath("$PROJECT_ROOT")
@@ -2074,12 +2080,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
runTest("compiler/testData/codegen/box/builderInference/issues/kt57707.kt");
}
@Test
@TestMetadata("kt57709.kt")
public void testKt57709() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/issues/kt57709.kt");
}
@Test
@TestMetadata("kt57834.kt")
public void testKt57834() throws Exception {