K2: Allow PCLA inference when a value parameter has a TV type

^KT-64877 Fixed
This commit is contained in:
Denis.Zharkov
2024-01-10 19:10:15 +01:00
committed by Space Team
parent b2ca19da73
commit 72b0372927
39 changed files with 272 additions and 44 deletions
@@ -17199,6 +17199,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/inference/builderInference/bothOuterAndProperConstraints.kt");
}
@Test
@TestMetadata("bothReceiverAndValueParameterNotFixed.kt")
public void testBothReceiverAndValueParameterNotFixed() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/builderInference/bothReceiverAndValueParameterNotFixed.kt");
}
@Test
@TestMetadata("builderInferenceAnnotationInLambdaWithTVExpectedType.kt")
public void testBuilderInferenceAnnotationInLambdaWithTVExpectedType() throws Exception {
@@ -2772,6 +2772,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
@Test
@TestMetadata("lambdaParameterHasTVType.kt")
public void testLambdaParameterHasTVType() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
@@ -17199,6 +17199,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/inference/builderInference/bothOuterAndProperConstraints.kt");
}
@Test
@TestMetadata("bothReceiverAndValueParameterNotFixed.kt")
public void testBothReceiverAndValueParameterNotFixed() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/builderInference/bothReceiverAndValueParameterNotFixed.kt");
}
@Test
@TestMetadata("builderInferenceAnnotationInLambdaWithTVExpectedType.kt")
public void testBuilderInferenceAnnotationInLambdaWithTVExpectedType() throws Exception {
@@ -2772,6 +2772,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
@Test
@TestMetadata("lambdaParameterHasTVType.kt")
public void testLambdaParameterHasTVType() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {