K2: Run completion-writer related PCLA tasks for irregular call kinds

- For synthetic calls
- For delegated constructor calls

Also, I checked that for each toResolvedReference() (beside annotations)
that converts candidate to the resolved reference,
we run `runPCLARelatedTasksForCandidate()` in the same context.

^KT-65103 Fixed
This commit is contained in:
Denis.Zharkov
2024-01-22 18:48:53 +01:00
committed by Space Team
parent 438c55756f
commit ca80ddb8ca
25 changed files with 569 additions and 6 deletions
@@ -2408,6 +2408,26 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@TestMetadata("pcaRootIsDelegatedConstructorCall.kt")
public void testPcaRootIsDelegatedConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pcaRootIsDelegatedConstructorCall.kt");
}
@TestMetadata("pclaRootIsElvisSynthetic.kt")
public void testPclaRootIsElvisSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsElvisSynthetic.kt");
}
@TestMetadata("pclaRootIsIfWhenSyntheticCall.kt")
public void testPclaRootIsIfWhenSyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsIfWhenSyntheticCall.kt");
}
@TestMetadata("pclaRootIsTrySyntheticCall.kt")
public void testPclaRootIsTrySyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsTrySyntheticCall.kt");
}
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/receiverUsesOuterTVButReturnTypeIsProper.kt");