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
@@ -1920,6 +1920,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, 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")
@@ -2136,12 +2142,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
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 {
@@ -1966,6 +1966,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, 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")
@@ -2184,12 +2190,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
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 {
@@ -1874,6 +1874,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, 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")
@@ -2088,12 +2094,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
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 {
@@ -1921,6 +1921,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, 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")
@@ -2137,12 +2143,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
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 {
@@ -2476,6 +2476,12 @@ public class ClassicNativeIrTextTestGenerated extends AbstractClassicNativeIrTex
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 {
@@ -2730,6 +2736,12 @@ public class ClassicNativeIrTextTestGenerated extends AbstractClassicNativeIrTex
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 {
@@ -2476,6 +2476,12 @@ public class FirLightTreeNativeIrTextTestGenerated extends AbstractFirLightTreeN
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 {
@@ -2730,6 +2736,12 @@ public class FirLightTreeNativeIrTextTestGenerated extends AbstractFirLightTreeN
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 {
@@ -2476,6 +2476,12 @@ public class FirPsiNativeIrTextTestGenerated extends AbstractFirPsiNativeIrTextT
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 {
@@ -2730,6 +2736,12 @@ public class FirPsiNativeIrTextTestGenerated extends AbstractFirPsiNativeIrTextT
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 {