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
@@ -2778,6 +2778,30 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@Test
@TestMetadata("pcaRootIsDelegatedConstructorCall.kt")
public void testPcaRootIsDelegatedConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pcaRootIsDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("pclaRootIsElvisSynthetic.kt")
public void testPclaRootIsElvisSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsElvisSynthetic.kt");
}
@Test
@TestMetadata("pclaRootIsIfWhenSyntheticCall.kt")
public void testPclaRootIsIfWhenSyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsIfWhenSyntheticCall.kt");
}
@Test
@TestMetadata("pclaRootIsTrySyntheticCall.kt")
public void testPclaRootIsTrySyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsTrySyntheticCall.kt");
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
@@ -2778,6 +2778,30 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@Test
@TestMetadata("pcaRootIsDelegatedConstructorCall.kt")
public void testPcaRootIsDelegatedConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pcaRootIsDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("pclaRootIsElvisSynthetic.kt")
public void testPclaRootIsElvisSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsElvisSynthetic.kt");
}
@Test
@TestMetadata("pclaRootIsIfWhenSyntheticCall.kt")
public void testPclaRootIsIfWhenSyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsIfWhenSyntheticCall.kt");
}
@Test
@TestMetadata("pclaRootIsTrySyntheticCall.kt")
public void testPclaRootIsTrySyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsTrySyntheticCall.kt");
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
@@ -2761,6 +2761,30 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@Test
@TestMetadata("pcaRootIsDelegatedConstructorCall.kt")
public void testPcaRootIsDelegatedConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pcaRootIsDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("pclaRootIsElvisSynthetic.kt")
public void testPclaRootIsElvisSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsElvisSynthetic.kt");
}
@Test
@TestMetadata("pclaRootIsIfWhenSyntheticCall.kt")
public void testPclaRootIsIfWhenSyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsIfWhenSyntheticCall.kt");
}
@Test
@TestMetadata("pclaRootIsTrySyntheticCall.kt")
public void testPclaRootIsTrySyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsTrySyntheticCall.kt");
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
@@ -2761,6 +2761,30 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@Test
@TestMetadata("pcaRootIsDelegatedConstructorCall.kt")
public void testPcaRootIsDelegatedConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pcaRootIsDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("pclaRootIsElvisSynthetic.kt")
public void testPclaRootIsElvisSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsElvisSynthetic.kt");
}
@Test
@TestMetadata("pclaRootIsIfWhenSyntheticCall.kt")
public void testPclaRootIsIfWhenSyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsIfWhenSyntheticCall.kt");
}
@Test
@TestMetadata("pclaRootIsTrySyntheticCall.kt")
public void testPclaRootIsTrySyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsTrySyntheticCall.kt");
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
@@ -2761,6 +2761,30 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@Test
@TestMetadata("pcaRootIsDelegatedConstructorCall.kt")
public void testPcaRootIsDelegatedConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pcaRootIsDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("pclaRootIsElvisSynthetic.kt")
public void testPclaRootIsElvisSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsElvisSynthetic.kt");
}
@Test
@TestMetadata("pclaRootIsIfWhenSyntheticCall.kt")
public void testPclaRootIsIfWhenSyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsIfWhenSyntheticCall.kt");
}
@Test
@TestMetadata("pclaRootIsTrySyntheticCall.kt")
public void testPclaRootIsTrySyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsTrySyntheticCall.kt");
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
@@ -183,22 +183,26 @@ class FirCallCompletionResultsWriterTransformer(
qualifiedAccessExpression.replaceTypeArguments(typeArguments)
}
for (postponedCall in subCandidate.postponedPCLACalls) {
runPCLARelatedTasksForCandidate(subCandidate)
session.lookupTracker?.recordTypeResolveAsLookup(type, qualifiedAccessExpression.source, context.file.source)
return qualifiedAccessExpression
}
private fun runPCLARelatedTasksForCandidate(candidate: Candidate) {
for (postponedCall in candidate.postponedPCLACalls) {
postponedCall.transformSingle(this, null)
}
for (callback in subCandidate.onCompletionResultsWritingCallbacks) {
for (callback in candidate.onCompletionResultsWritingCallbacks) {
callback(finalSubstitutor)
}
// TODO: Be aware of exponent
val firStubTypeTransformer = FirTypeVariablesAfterPCLATransformer(finalSubstitutor)
for (lambda in subCandidate.lambdasAnalyzedWithPCLA) {
for (lambda in candidate.lambdasAnalyzedWithPCLA) {
lambda.transformSingle(firStubTypeTransformer, null)
}
session.lookupTracker?.recordTypeResolveAsLookup(type, qualifiedAccessExpression.source, context.file.source)
return qualifiedAccessExpression
}
/**
@@ -674,6 +678,8 @@ class FirCallCompletionResultsWriterTransformer(
}
}
runPCLARelatedTasksForCandidate(subCandidate)
val argumentsMapping = runIf(!calleeReference.isError) { subCandidate.createArgumentsMapping() }
delegatedConstructorCall.transformWithExpectedTypes(argumentsMapping)
@@ -914,6 +920,8 @@ class FirCallCompletionResultsWriterTransformer(
syntheticCall.replaceTypeWithSubstituted(calleeReference, typeRef)
transformSyntheticCallChildren(syntheticCall, data)
runPCLARelatedTasksForCandidate(calleeReference.candidate)
return syntheticCall.apply {
replaceCalleeReference(calleeReference.toResolvedReference())
}
@@ -0,0 +1,16 @@
// ISSUE: KT-65103
interface Consumer<in T>
public fun <T> buildConsumer(
block: (Consumer<T>) -> Unit
): Any? = "OK"
fun expectConsumerString(x: Consumer<String>) {}
abstract class A(val x: Any?)
class B : A(buildConsumer {
expectConsumerString(it)
})
fun box(): String = B().x as String
@@ -0,0 +1,18 @@
// ISSUE: KT-65103
interface Consumer<in T>
public fun <T> buildConsumer(
b: Boolean,
block: (Consumer<T>) -> Unit
): T? = if (b) ("O" as T) else null
public fun <T> materialize(): T = "K" as T
fun expectConsumerString(x: Consumer<String>) {}
fun elvis(b: Boolean) =
buildConsumer(b) {
expectConsumerString(it)
} ?: materialize()
fun box(): String = elvis(true) + elvis(false)
@@ -0,0 +1,29 @@
// ISSUE: KT-65103
interface Consumer<in T>
public fun <T> buildConsumer(
block: (Consumer<T>) -> Unit
): T = "O" as T
public fun <T> materialize(): T = "K" as T
fun expectConsumerString(x: Consumer<String>) {}
fun foo1(x: Boolean) = when {
x -> buildConsumer {
expectConsumerString(it)
}
else -> materialize()
}
fun foo2(x: Boolean) =
if (x)
buildConsumer {
expectConsumerString(it)
}
else
materialize()
fun box(): String {
return foo1(true) + foo2(false)
}
@@ -0,0 +1,16 @@
// ISSUE: KT-65103
interface Consumer<in T>
public fun <T> buildConsumer(
block: (Consumer<T>) -> Unit
): T = "OK" as T
fun expectConsumerString(x: Consumer<String>) {}
fun box() =
try { // This try is essential
buildConsumer {
expectConsumerString(it)
}
} finally {
}
@@ -2761,6 +2761,30 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@Test
@TestMetadata("pcaRootIsDelegatedConstructorCall.kt")
public void testPcaRootIsDelegatedConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pcaRootIsDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("pclaRootIsElvisSynthetic.kt")
public void testPclaRootIsElvisSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsElvisSynthetic.kt");
}
@Test
@TestMetadata("pclaRootIsIfWhenSyntheticCall.kt")
public void testPclaRootIsIfWhenSyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsIfWhenSyntheticCall.kt");
}
@Test
@TestMetadata("pclaRootIsTrySyntheticCall.kt")
public void testPclaRootIsTrySyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsTrySyntheticCall.kt");
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
@@ -2581,6 +2581,30 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@Test
@TestMetadata("pcaRootIsDelegatedConstructorCall.kt")
public void testPcaRootIsDelegatedConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pcaRootIsDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("pclaRootIsElvisSynthetic.kt")
public void testPclaRootIsElvisSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsElvisSynthetic.kt");
}
@Test
@TestMetadata("pclaRootIsIfWhenSyntheticCall.kt")
public void testPclaRootIsIfWhenSyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsIfWhenSyntheticCall.kt");
}
@Test
@TestMetadata("pclaRootIsTrySyntheticCall.kt")
public void testPclaRootIsTrySyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsTrySyntheticCall.kt");
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
@@ -2761,6 +2761,30 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@Test
@TestMetadata("pcaRootIsDelegatedConstructorCall.kt")
public void testPcaRootIsDelegatedConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pcaRootIsDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("pclaRootIsElvisSynthetic.kt")
public void testPclaRootIsElvisSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsElvisSynthetic.kt");
}
@Test
@TestMetadata("pclaRootIsIfWhenSyntheticCall.kt")
public void testPclaRootIsIfWhenSyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsIfWhenSyntheticCall.kt");
}
@Test
@TestMetadata("pclaRootIsTrySyntheticCall.kt")
public void testPclaRootIsTrySyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsTrySyntheticCall.kt");
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
@@ -2761,6 +2761,30 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@Test
@TestMetadata("pcaRootIsDelegatedConstructorCall.kt")
public void testPcaRootIsDelegatedConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pcaRootIsDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("pclaRootIsElvisSynthetic.kt")
public void testPclaRootIsElvisSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsElvisSynthetic.kt");
}
@Test
@TestMetadata("pclaRootIsIfWhenSyntheticCall.kt")
public void testPclaRootIsIfWhenSyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsIfWhenSyntheticCall.kt");
}
@Test
@TestMetadata("pclaRootIsTrySyntheticCall.kt")
public void testPclaRootIsTrySyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsTrySyntheticCall.kt");
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
@@ -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");
@@ -1867,6 +1867,30 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@Test
@TestMetadata("pcaRootIsDelegatedConstructorCall.kt")
public void testPcaRootIsDelegatedConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pcaRootIsDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("pclaRootIsElvisSynthetic.kt")
public void testPclaRootIsElvisSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsElvisSynthetic.kt");
}
@Test
@TestMetadata("pclaRootIsIfWhenSyntheticCall.kt")
public void testPclaRootIsIfWhenSyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsIfWhenSyntheticCall.kt");
}
@Test
@TestMetadata("pclaRootIsTrySyntheticCall.kt")
public void testPclaRootIsTrySyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsTrySyntheticCall.kt");
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
@@ -1867,6 +1867,30 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@Test
@TestMetadata("pcaRootIsDelegatedConstructorCall.kt")
public void testPcaRootIsDelegatedConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pcaRootIsDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("pclaRootIsElvisSynthetic.kt")
public void testPclaRootIsElvisSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsElvisSynthetic.kt");
}
@Test
@TestMetadata("pclaRootIsIfWhenSyntheticCall.kt")
public void testPclaRootIsIfWhenSyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsIfWhenSyntheticCall.kt");
}
@Test
@TestMetadata("pclaRootIsTrySyntheticCall.kt")
public void testPclaRootIsTrySyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsTrySyntheticCall.kt");
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
@@ -1867,6 +1867,30 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@Test
@TestMetadata("pcaRootIsDelegatedConstructorCall.kt")
public void testPcaRootIsDelegatedConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pcaRootIsDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("pclaRootIsElvisSynthetic.kt")
public void testPclaRootIsElvisSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsElvisSynthetic.kt");
}
@Test
@TestMetadata("pclaRootIsIfWhenSyntheticCall.kt")
public void testPclaRootIsIfWhenSyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsIfWhenSyntheticCall.kt");
}
@Test
@TestMetadata("pclaRootIsTrySyntheticCall.kt")
public void testPclaRootIsTrySyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsTrySyntheticCall.kt");
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
@@ -1867,6 +1867,30 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@Test
@TestMetadata("pcaRootIsDelegatedConstructorCall.kt")
public void testPcaRootIsDelegatedConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pcaRootIsDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("pclaRootIsElvisSynthetic.kt")
public void testPclaRootIsElvisSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsElvisSynthetic.kt");
}
@Test
@TestMetadata("pclaRootIsIfWhenSyntheticCall.kt")
public void testPclaRootIsIfWhenSyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsIfWhenSyntheticCall.kt");
}
@Test
@TestMetadata("pclaRootIsTrySyntheticCall.kt")
public void testPclaRootIsTrySyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsTrySyntheticCall.kt");
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
@@ -1926,6 +1926,30 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@Test
@TestMetadata("pcaRootIsDelegatedConstructorCall.kt")
public void testPcaRootIsDelegatedConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pcaRootIsDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("pclaRootIsElvisSynthetic.kt")
public void testPclaRootIsElvisSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsElvisSynthetic.kt");
}
@Test
@TestMetadata("pclaRootIsIfWhenSyntheticCall.kt")
public void testPclaRootIsIfWhenSyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsIfWhenSyntheticCall.kt");
}
@Test
@TestMetadata("pclaRootIsTrySyntheticCall.kt")
public void testPclaRootIsTrySyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsTrySyntheticCall.kt");
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
@@ -1972,6 +1972,30 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@Test
@TestMetadata("pcaRootIsDelegatedConstructorCall.kt")
public void testPcaRootIsDelegatedConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pcaRootIsDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("pclaRootIsElvisSynthetic.kt")
public void testPclaRootIsElvisSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsElvisSynthetic.kt");
}
@Test
@TestMetadata("pclaRootIsIfWhenSyntheticCall.kt")
public void testPclaRootIsIfWhenSyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsIfWhenSyntheticCall.kt");
}
@Test
@TestMetadata("pclaRootIsTrySyntheticCall.kt")
public void testPclaRootIsTrySyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsTrySyntheticCall.kt");
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
@@ -1880,6 +1880,30 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@Test
@TestMetadata("pcaRootIsDelegatedConstructorCall.kt")
public void testPcaRootIsDelegatedConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pcaRootIsDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("pclaRootIsElvisSynthetic.kt")
public void testPclaRootIsElvisSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsElvisSynthetic.kt");
}
@Test
@TestMetadata("pclaRootIsIfWhenSyntheticCall.kt")
public void testPclaRootIsIfWhenSyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsIfWhenSyntheticCall.kt");
}
@Test
@TestMetadata("pclaRootIsTrySyntheticCall.kt")
public void testPclaRootIsTrySyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsTrySyntheticCall.kt");
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
@@ -1927,6 +1927,30 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@Test
@TestMetadata("pcaRootIsDelegatedConstructorCall.kt")
public void testPcaRootIsDelegatedConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pcaRootIsDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("pclaRootIsElvisSynthetic.kt")
public void testPclaRootIsElvisSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsElvisSynthetic.kt");
}
@Test
@TestMetadata("pclaRootIsIfWhenSyntheticCall.kt")
public void testPclaRootIsIfWhenSyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsIfWhenSyntheticCall.kt");
}
@Test
@TestMetadata("pclaRootIsTrySyntheticCall.kt")
public void testPclaRootIsTrySyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsTrySyntheticCall.kt");
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
@@ -1855,6 +1855,30 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@Test
@TestMetadata("pcaRootIsDelegatedConstructorCall.kt")
public void testPcaRootIsDelegatedConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pcaRootIsDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("pclaRootIsElvisSynthetic.kt")
public void testPclaRootIsElvisSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsElvisSynthetic.kt");
}
@Test
@TestMetadata("pclaRootIsIfWhenSyntheticCall.kt")
public void testPclaRootIsIfWhenSyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsIfWhenSyntheticCall.kt");
}
@Test
@TestMetadata("pclaRootIsTrySyntheticCall.kt")
public void testPclaRootIsTrySyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsTrySyntheticCall.kt");
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
@@ -1855,6 +1855,30 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest
runTest("compiler/testData/codegen/box/builderInference/lambdaParameterHasTVType.kt");
}
@Test
@TestMetadata("pcaRootIsDelegatedConstructorCall.kt")
public void testPcaRootIsDelegatedConstructorCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pcaRootIsDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("pclaRootIsElvisSynthetic.kt")
public void testPclaRootIsElvisSynthetic() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsElvisSynthetic.kt");
}
@Test
@TestMetadata("pclaRootIsIfWhenSyntheticCall.kt")
public void testPclaRootIsIfWhenSyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsIfWhenSyntheticCall.kt");
}
@Test
@TestMetadata("pclaRootIsTrySyntheticCall.kt")
public void testPclaRootIsTrySyntheticCall() throws Exception {
runTest("compiler/testData/codegen/box/builderInference/pclaRootIsTrySyntheticCall.kt");
}
@Test
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {