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:
committed by
Space Team
parent
90feeab076
commit
7e4d9d9f64
+198
@@ -16926,6 +16926,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/inference/nonFunctionalExpectedTypeForLambdaArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notFixedTopLevelLambdaParameter.kt")
|
||||
public void testNotFixedTopLevelLambdaParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/notFixedTopLevelLambdaParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nothingVsParameterBound.kt")
|
||||
public void testNothingVsParameterBound() throws Exception {
|
||||
@@ -17181,18 +17187,60 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/builderInference"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("assignmentUsingIncompletePCLACall.kt")
|
||||
public void testAssignmentUsingIncompletePCLACall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/assignmentUsingIncompletePCLACall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("bothOuterAndProperConstraints.kt")
|
||||
public void testBothOuterAndProperConstraints() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/bothOuterAndProperConstraints.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("builderInferenceAnnotationInLambdaWithTVExpectedType.kt")
|
||||
public void testBuilderInferenceAnnotationInLambdaWithTVExpectedType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/builderInferenceAnnotationInLambdaWithTVExpectedType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("builderPassedAsNamedArgument.kt")
|
||||
public void testBuilderPassedAsNamedArgument() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/builderPassedAsNamedArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callableReferenceAsArgumentForTransaction.kt")
|
||||
public void testCallableReferenceAsArgumentForTransaction() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/callableReferenceAsArgumentForTransaction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callableReferenceInsideInvokeCall.kt")
|
||||
public void testCallableReferenceInsideInvokeCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/callableReferenceInsideInvokeCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("changingResolveIfDontUseBuilderInference.kt")
|
||||
public void testChangingResolveIfDontUseBuilderInference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/changingResolveIfDontUseBuilderInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("considerContractsOfIncompleteCalls.kt")
|
||||
public void testConsiderContractsOfIncompleteCalls() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/considerContractsOfIncompleteCalls.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("elvisWithReturnInLastStatementOfLastLambda.kt")
|
||||
public void testElvisWithReturnInLastStatementOfLastLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/elvisWithReturnInLastStatementOfLastLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("equalityChecksOnIntegerTypes.kt")
|
||||
public void testEqualityChecksOnIntegerTypes() throws Exception {
|
||||
@@ -17211,18 +17259,66 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/errorOnStubReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingDependentVariablesForReceivers.kt")
|
||||
public void testFixingDependentVariablesForReceivers() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingDependentVariablesForReceivers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingDependentVariablesForReceiversInitial.kt")
|
||||
public void testFixingDependentVariablesForReceiversInitial() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingDependentVariablesForReceiversInitial.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingTVForLambadaWithShallowDependencyToOuter.kt")
|
||||
public void testFixingTVForLambadaWithShallowDependencyToOuter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingTVForLambadaWithShallowDependencyToOuter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingTVForLambadaWithShallowDependencyToOuter2.kt")
|
||||
public void testFixingTVForLambadaWithShallowDependencyToOuter2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingTVForLambadaWithShallowDependencyToOuter2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingTVForLambadaWithShallowDependencyToOuter3.kt")
|
||||
public void testFixingTVForLambadaWithShallowDependencyToOuter3() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingTVForLambadaWithShallowDependencyToOuter3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("incompleteCallInReturnArgumentsWithProperExpectType.kt")
|
||||
public void testIncompleteCallInReturnArgumentsWithProperExpectType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/incompleteCallInReturnArgumentsWithProperExpectType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("innerTvFixationFromLowerConstraints.kt")
|
||||
public void testInnerTvFixationFromLowerConstraints() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/innerTvFixationFromLowerConstraints.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invalidateKeys.kt")
|
||||
public void testInvalidateKeys() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/invalidateKeys.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invokeExtensionReceiverWithNotFixedVariables.kt")
|
||||
public void testInvokeExtensionReceiverWithNotFixedVariables() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/invokeExtensionReceiverWithNotFixedVariables.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invokeExtensionReceiverWithNotFixedVariablesInitial.kt")
|
||||
public void testInvokeExtensionReceiverWithNotFixedVariablesInitial() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/invokeExtensionReceiverWithNotFixedVariablesInitial.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt47744.kt")
|
||||
public void testKt47744() throws Exception {
|
||||
@@ -17331,6 +17427,36 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/labaledCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaParameterForBareType.kt")
|
||||
public void testLambdaParameterForBareType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/lambdaParameterForBareType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaParameterTypeFixation.kt")
|
||||
public void testLambdaParameterTypeFixation() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/lambdaParameterTypeFixation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lastLambdaStatementWithFixedVariables.kt")
|
||||
public void testLastLambdaStatementWithFixedVariables() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/lastLambdaStatementWithFixedVariables.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("manyArgsDifferentYields.kt")
|
||||
public void testManyArgsDifferentYields() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/manyArgsDifferentYields.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("memberScopeOfCapturedTypeForPostponedCall.kt")
|
||||
public void testMemberScopeOfCapturedTypeForPostponedCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/memberScopeOfCapturedTypeForPostponedCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multiLambdaRestriction.kt")
|
||||
public void testMultiLambdaRestriction() throws Exception {
|
||||
@@ -17343,12 +17469,42 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/multiLambdaRestrictionDisabled.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedLambdaWithLastLambdaContainingCall.kt")
|
||||
public void testNestedLambdaWithLastLambdaContainingCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/nestedLambdaWithLastLambdaContainingCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedLambdaWithNonLastYieldStatement.kt")
|
||||
public void testNestedLambdaWithNonLastYieldStatement() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/nestedLambdaWithNonLastYieldStatement.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedLambdasWithOverloadResolutionByReturnType.kt")
|
||||
public void testNestedLambdasWithOverloadResolutionByReturnType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/nestedLambdasWithOverloadResolutionByReturnType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("newTvFromLamdaAreNotCountedAsProper.kt")
|
||||
public void testNewTvFromLamdaAreNotCountedAsProper() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/newTvFromLamdaAreNotCountedAsProper.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noBuilderInferenceRestrictionReceiverInconsistency.kt")
|
||||
public void testNoBuilderInferenceRestrictionReceiverInconsistency() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/noBuilderInferenceRestrictionReceiverInconsistency.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overloadResolutionByLambdaReturnTypeInsideBI.kt")
|
||||
public void testOverloadResolutionByLambdaReturnTypeInsideBI() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/overloadResolutionByLambdaReturnTypeInsideBI.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertySubstitution.kt")
|
||||
public void testPropertySubstitution() throws Exception {
|
||||
@@ -17361,12 +17517,24 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/simpleLambdaInCallWithAnotherLambdaWithBuilderInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("singleBranchConditionLastStatementInLambda.kt")
|
||||
public void testSingleBranchConditionLastStatementInLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/singleBranchConditionLastStatementInLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("skipedUnresolvedInBuilderInferenceWithStubReceiverType.kt")
|
||||
public void testSkipedUnresolvedInBuilderInferenceWithStubReceiverType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/skipedUnresolvedInBuilderInferenceWithStubReceiverType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartCastOnBuilderController.kt")
|
||||
public void testSmartCastOnBuilderController() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/smartCastOnBuilderController.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("specialCallsWithCallableReferences.kt")
|
||||
public void testSpecialCallsWithCallableReferences() throws Exception {
|
||||
@@ -17415,6 +17583,24 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/specialCallsWithLambdas.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("substitutedSyntheticPropertyUsage.kt")
|
||||
public void testSubstitutedSyntheticPropertyUsage() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/substitutedSyntheticPropertyUsage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("theSimplestBuilder.kt")
|
||||
public void testTheSimplestBuilder() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/theSimplestBuilder.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenWithPropertyHavingSomePCLACallsWithinInitializer.kt")
|
||||
public void testWhenWithPropertyHavingSomePCLACallsWithinInitializer() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/whenWithPropertyHavingSomePCLACallsWithinInitializer.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withoutAnnotationDisabledFeature.kt")
|
||||
public void testWithoutAnnotationDisabledFeature() throws Exception {
|
||||
@@ -17512,6 +17698,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/stubTypes/renderingStubTypes.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleIntersection.kt")
|
||||
public void testSimpleIntersection() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/stubTypes/simpleIntersection.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stubTypeReceiverRestriction.kt")
|
||||
public void testStubTypeReceiverRestriction() throws Exception {
|
||||
@@ -43589,6 +43781,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt38667.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt38667Simplified.kt")
|
||||
public void testKt38667Simplified() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt38667Simplified.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt38766.kt")
|
||||
public void testKt38766() throws Exception {
|
||||
|
||||
+6
@@ -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("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")
|
||||
|
||||
+198
@@ -16926,6 +16926,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/inference/nonFunctionalExpectedTypeForLambdaArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notFixedTopLevelLambdaParameter.kt")
|
||||
public void testNotFixedTopLevelLambdaParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/notFixedTopLevelLambdaParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nothingVsParameterBound.kt")
|
||||
public void testNothingVsParameterBound() throws Exception {
|
||||
@@ -17181,18 +17187,60 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/builderInference"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("assignmentUsingIncompletePCLACall.kt")
|
||||
public void testAssignmentUsingIncompletePCLACall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/assignmentUsingIncompletePCLACall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("bothOuterAndProperConstraints.kt")
|
||||
public void testBothOuterAndProperConstraints() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/bothOuterAndProperConstraints.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("builderInferenceAnnotationInLambdaWithTVExpectedType.kt")
|
||||
public void testBuilderInferenceAnnotationInLambdaWithTVExpectedType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/builderInferenceAnnotationInLambdaWithTVExpectedType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("builderPassedAsNamedArgument.kt")
|
||||
public void testBuilderPassedAsNamedArgument() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/builderPassedAsNamedArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callableReferenceAsArgumentForTransaction.kt")
|
||||
public void testCallableReferenceAsArgumentForTransaction() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/callableReferenceAsArgumentForTransaction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callableReferenceInsideInvokeCall.kt")
|
||||
public void testCallableReferenceInsideInvokeCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/callableReferenceInsideInvokeCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("changingResolveIfDontUseBuilderInference.kt")
|
||||
public void testChangingResolveIfDontUseBuilderInference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/changingResolveIfDontUseBuilderInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("considerContractsOfIncompleteCalls.kt")
|
||||
public void testConsiderContractsOfIncompleteCalls() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/considerContractsOfIncompleteCalls.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("elvisWithReturnInLastStatementOfLastLambda.kt")
|
||||
public void testElvisWithReturnInLastStatementOfLastLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/elvisWithReturnInLastStatementOfLastLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("equalityChecksOnIntegerTypes.kt")
|
||||
public void testEqualityChecksOnIntegerTypes() throws Exception {
|
||||
@@ -17211,18 +17259,66 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/errorOnStubReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingDependentVariablesForReceivers.kt")
|
||||
public void testFixingDependentVariablesForReceivers() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingDependentVariablesForReceivers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingDependentVariablesForReceiversInitial.kt")
|
||||
public void testFixingDependentVariablesForReceiversInitial() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingDependentVariablesForReceiversInitial.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingTVForLambadaWithShallowDependencyToOuter.kt")
|
||||
public void testFixingTVForLambadaWithShallowDependencyToOuter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingTVForLambadaWithShallowDependencyToOuter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingTVForLambadaWithShallowDependencyToOuter2.kt")
|
||||
public void testFixingTVForLambadaWithShallowDependencyToOuter2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingTVForLambadaWithShallowDependencyToOuter2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingTVForLambadaWithShallowDependencyToOuter3.kt")
|
||||
public void testFixingTVForLambadaWithShallowDependencyToOuter3() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingTVForLambadaWithShallowDependencyToOuter3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("incompleteCallInReturnArgumentsWithProperExpectType.kt")
|
||||
public void testIncompleteCallInReturnArgumentsWithProperExpectType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/incompleteCallInReturnArgumentsWithProperExpectType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("innerTvFixationFromLowerConstraints.kt")
|
||||
public void testInnerTvFixationFromLowerConstraints() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/innerTvFixationFromLowerConstraints.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invalidateKeys.kt")
|
||||
public void testInvalidateKeys() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/invalidateKeys.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invokeExtensionReceiverWithNotFixedVariables.kt")
|
||||
public void testInvokeExtensionReceiverWithNotFixedVariables() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/invokeExtensionReceiverWithNotFixedVariables.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invokeExtensionReceiverWithNotFixedVariablesInitial.kt")
|
||||
public void testInvokeExtensionReceiverWithNotFixedVariablesInitial() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/invokeExtensionReceiverWithNotFixedVariablesInitial.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt47744.kt")
|
||||
public void testKt47744() throws Exception {
|
||||
@@ -17331,6 +17427,36 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/labaledCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaParameterForBareType.kt")
|
||||
public void testLambdaParameterForBareType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/lambdaParameterForBareType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaParameterTypeFixation.kt")
|
||||
public void testLambdaParameterTypeFixation() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/lambdaParameterTypeFixation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lastLambdaStatementWithFixedVariables.kt")
|
||||
public void testLastLambdaStatementWithFixedVariables() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/lastLambdaStatementWithFixedVariables.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("manyArgsDifferentYields.kt")
|
||||
public void testManyArgsDifferentYields() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/manyArgsDifferentYields.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("memberScopeOfCapturedTypeForPostponedCall.kt")
|
||||
public void testMemberScopeOfCapturedTypeForPostponedCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/memberScopeOfCapturedTypeForPostponedCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multiLambdaRestriction.kt")
|
||||
public void testMultiLambdaRestriction() throws Exception {
|
||||
@@ -17343,12 +17469,42 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/multiLambdaRestrictionDisabled.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedLambdaWithLastLambdaContainingCall.kt")
|
||||
public void testNestedLambdaWithLastLambdaContainingCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/nestedLambdaWithLastLambdaContainingCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedLambdaWithNonLastYieldStatement.kt")
|
||||
public void testNestedLambdaWithNonLastYieldStatement() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/nestedLambdaWithNonLastYieldStatement.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedLambdasWithOverloadResolutionByReturnType.kt")
|
||||
public void testNestedLambdasWithOverloadResolutionByReturnType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/nestedLambdasWithOverloadResolutionByReturnType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("newTvFromLamdaAreNotCountedAsProper.kt")
|
||||
public void testNewTvFromLamdaAreNotCountedAsProper() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/newTvFromLamdaAreNotCountedAsProper.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noBuilderInferenceRestrictionReceiverInconsistency.kt")
|
||||
public void testNoBuilderInferenceRestrictionReceiverInconsistency() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/noBuilderInferenceRestrictionReceiverInconsistency.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overloadResolutionByLambdaReturnTypeInsideBI.kt")
|
||||
public void testOverloadResolutionByLambdaReturnTypeInsideBI() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/overloadResolutionByLambdaReturnTypeInsideBI.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertySubstitution.kt")
|
||||
public void testPropertySubstitution() throws Exception {
|
||||
@@ -17361,12 +17517,24 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/simpleLambdaInCallWithAnotherLambdaWithBuilderInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("singleBranchConditionLastStatementInLambda.kt")
|
||||
public void testSingleBranchConditionLastStatementInLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/singleBranchConditionLastStatementInLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("skipedUnresolvedInBuilderInferenceWithStubReceiverType.kt")
|
||||
public void testSkipedUnresolvedInBuilderInferenceWithStubReceiverType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/skipedUnresolvedInBuilderInferenceWithStubReceiverType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartCastOnBuilderController.kt")
|
||||
public void testSmartCastOnBuilderController() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/smartCastOnBuilderController.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("specialCallsWithCallableReferences.kt")
|
||||
public void testSpecialCallsWithCallableReferences() throws Exception {
|
||||
@@ -17415,6 +17583,24 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/specialCallsWithLambdas.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("substitutedSyntheticPropertyUsage.kt")
|
||||
public void testSubstitutedSyntheticPropertyUsage() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/substitutedSyntheticPropertyUsage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("theSimplestBuilder.kt")
|
||||
public void testTheSimplestBuilder() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/theSimplestBuilder.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenWithPropertyHavingSomePCLACallsWithinInitializer.kt")
|
||||
public void testWhenWithPropertyHavingSomePCLACallsWithinInitializer() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/whenWithPropertyHavingSomePCLACallsWithinInitializer.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withoutAnnotationDisabledFeature.kt")
|
||||
public void testWithoutAnnotationDisabledFeature() throws Exception {
|
||||
@@ -17512,6 +17698,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/stubTypes/renderingStubTypes.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleIntersection.kt")
|
||||
public void testSimpleIntersection() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/stubTypes/simpleIntersection.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stubTypeReceiverRestriction.kt")
|
||||
public void testStubTypeReceiverRestriction() throws Exception {
|
||||
@@ -43589,6 +43781,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt38667.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt38667Simplified.kt")
|
||||
public void testKt38667Simplified() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt38667Simplified.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt38766.kt")
|
||||
public void testKt38766() throws Exception {
|
||||
|
||||
+6
@@ -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("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")
|
||||
|
||||
+198
@@ -16920,6 +16920,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/inference/nonFunctionalExpectedTypeForLambdaArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notFixedTopLevelLambdaParameter.kt")
|
||||
public void testNotFixedTopLevelLambdaParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/notFixedTopLevelLambdaParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nothingVsParameterBound.kt")
|
||||
public void testNothingVsParameterBound() throws Exception {
|
||||
@@ -17175,18 +17181,60 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/builderInference"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("assignmentUsingIncompletePCLACall.kt")
|
||||
public void testAssignmentUsingIncompletePCLACall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/assignmentUsingIncompletePCLACall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("bothOuterAndProperConstraints.kt")
|
||||
public void testBothOuterAndProperConstraints() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/bothOuterAndProperConstraints.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("builderInferenceAnnotationInLambdaWithTVExpectedType.kt")
|
||||
public void testBuilderInferenceAnnotationInLambdaWithTVExpectedType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/builderInferenceAnnotationInLambdaWithTVExpectedType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("builderPassedAsNamedArgument.kt")
|
||||
public void testBuilderPassedAsNamedArgument() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/builderPassedAsNamedArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callableReferenceAsArgumentForTransaction.kt")
|
||||
public void testCallableReferenceAsArgumentForTransaction() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/callableReferenceAsArgumentForTransaction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callableReferenceInsideInvokeCall.kt")
|
||||
public void testCallableReferenceInsideInvokeCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/callableReferenceInsideInvokeCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("changingResolveIfDontUseBuilderInference.kt")
|
||||
public void testChangingResolveIfDontUseBuilderInference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/changingResolveIfDontUseBuilderInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("considerContractsOfIncompleteCalls.kt")
|
||||
public void testConsiderContractsOfIncompleteCalls() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/considerContractsOfIncompleteCalls.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("elvisWithReturnInLastStatementOfLastLambda.kt")
|
||||
public void testElvisWithReturnInLastStatementOfLastLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/elvisWithReturnInLastStatementOfLastLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("equalityChecksOnIntegerTypes.kt")
|
||||
public void testEqualityChecksOnIntegerTypes() throws Exception {
|
||||
@@ -17205,18 +17253,66 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/errorOnStubReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingDependentVariablesForReceivers.kt")
|
||||
public void testFixingDependentVariablesForReceivers() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingDependentVariablesForReceivers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingDependentVariablesForReceiversInitial.kt")
|
||||
public void testFixingDependentVariablesForReceiversInitial() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingDependentVariablesForReceiversInitial.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingTVForLambadaWithShallowDependencyToOuter.kt")
|
||||
public void testFixingTVForLambadaWithShallowDependencyToOuter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingTVForLambadaWithShallowDependencyToOuter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingTVForLambadaWithShallowDependencyToOuter2.kt")
|
||||
public void testFixingTVForLambadaWithShallowDependencyToOuter2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingTVForLambadaWithShallowDependencyToOuter2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingTVForLambadaWithShallowDependencyToOuter3.kt")
|
||||
public void testFixingTVForLambadaWithShallowDependencyToOuter3() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingTVForLambadaWithShallowDependencyToOuter3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("incompleteCallInReturnArgumentsWithProperExpectType.kt")
|
||||
public void testIncompleteCallInReturnArgumentsWithProperExpectType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/incompleteCallInReturnArgumentsWithProperExpectType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("innerTvFixationFromLowerConstraints.kt")
|
||||
public void testInnerTvFixationFromLowerConstraints() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/innerTvFixationFromLowerConstraints.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invalidateKeys.kt")
|
||||
public void testInvalidateKeys() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/invalidateKeys.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invokeExtensionReceiverWithNotFixedVariables.kt")
|
||||
public void testInvokeExtensionReceiverWithNotFixedVariables() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/invokeExtensionReceiverWithNotFixedVariables.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invokeExtensionReceiverWithNotFixedVariablesInitial.kt")
|
||||
public void testInvokeExtensionReceiverWithNotFixedVariablesInitial() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/invokeExtensionReceiverWithNotFixedVariablesInitial.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt47744.kt")
|
||||
public void testKt47744() throws Exception {
|
||||
@@ -17325,6 +17421,36 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/labaledCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaParameterForBareType.kt")
|
||||
public void testLambdaParameterForBareType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/lambdaParameterForBareType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaParameterTypeFixation.kt")
|
||||
public void testLambdaParameterTypeFixation() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/lambdaParameterTypeFixation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lastLambdaStatementWithFixedVariables.kt")
|
||||
public void testLastLambdaStatementWithFixedVariables() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/lastLambdaStatementWithFixedVariables.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("manyArgsDifferentYields.kt")
|
||||
public void testManyArgsDifferentYields() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/manyArgsDifferentYields.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("memberScopeOfCapturedTypeForPostponedCall.kt")
|
||||
public void testMemberScopeOfCapturedTypeForPostponedCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/memberScopeOfCapturedTypeForPostponedCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multiLambdaRestriction.kt")
|
||||
public void testMultiLambdaRestriction() throws Exception {
|
||||
@@ -17337,12 +17463,42 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/multiLambdaRestrictionDisabled.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedLambdaWithLastLambdaContainingCall.kt")
|
||||
public void testNestedLambdaWithLastLambdaContainingCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/nestedLambdaWithLastLambdaContainingCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedLambdaWithNonLastYieldStatement.kt")
|
||||
public void testNestedLambdaWithNonLastYieldStatement() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/nestedLambdaWithNonLastYieldStatement.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedLambdasWithOverloadResolutionByReturnType.kt")
|
||||
public void testNestedLambdasWithOverloadResolutionByReturnType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/nestedLambdasWithOverloadResolutionByReturnType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("newTvFromLamdaAreNotCountedAsProper.kt")
|
||||
public void testNewTvFromLamdaAreNotCountedAsProper() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/newTvFromLamdaAreNotCountedAsProper.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noBuilderInferenceRestrictionReceiverInconsistency.kt")
|
||||
public void testNoBuilderInferenceRestrictionReceiverInconsistency() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/noBuilderInferenceRestrictionReceiverInconsistency.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overloadResolutionByLambdaReturnTypeInsideBI.kt")
|
||||
public void testOverloadResolutionByLambdaReturnTypeInsideBI() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/overloadResolutionByLambdaReturnTypeInsideBI.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertySubstitution.kt")
|
||||
public void testPropertySubstitution() throws Exception {
|
||||
@@ -17355,12 +17511,24 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/simpleLambdaInCallWithAnotherLambdaWithBuilderInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("singleBranchConditionLastStatementInLambda.kt")
|
||||
public void testSingleBranchConditionLastStatementInLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/singleBranchConditionLastStatementInLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("skipedUnresolvedInBuilderInferenceWithStubReceiverType.kt")
|
||||
public void testSkipedUnresolvedInBuilderInferenceWithStubReceiverType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/skipedUnresolvedInBuilderInferenceWithStubReceiverType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartCastOnBuilderController.kt")
|
||||
public void testSmartCastOnBuilderController() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/smartCastOnBuilderController.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("specialCallsWithCallableReferences.kt")
|
||||
public void testSpecialCallsWithCallableReferences() throws Exception {
|
||||
@@ -17409,6 +17577,24 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/specialCallsWithLambdas.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("substitutedSyntheticPropertyUsage.kt")
|
||||
public void testSubstitutedSyntheticPropertyUsage() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/substitutedSyntheticPropertyUsage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("theSimplestBuilder.kt")
|
||||
public void testTheSimplestBuilder() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/theSimplestBuilder.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenWithPropertyHavingSomePCLACallsWithinInitializer.kt")
|
||||
public void testWhenWithPropertyHavingSomePCLACallsWithinInitializer() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/whenWithPropertyHavingSomePCLACallsWithinInitializer.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withoutAnnotationDisabledFeature.kt")
|
||||
public void testWithoutAnnotationDisabledFeature() throws Exception {
|
||||
@@ -17506,6 +17692,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/stubTypes/renderingStubTypes.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleIntersection.kt")
|
||||
public void testSimpleIntersection() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/stubTypes/simpleIntersection.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stubTypeReceiverRestriction.kt")
|
||||
public void testStubTypeReceiverRestriction() throws Exception {
|
||||
@@ -41303,6 +41495,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt38667.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt38667Simplified.kt")
|
||||
public void testKt38667Simplified() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt38667Simplified.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt38766.kt")
|
||||
public void testKt38766() throws Exception {
|
||||
|
||||
+198
@@ -16926,6 +16926,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/inference/nonFunctionalExpectedTypeForLambdaArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notFixedTopLevelLambdaParameter.kt")
|
||||
public void testNotFixedTopLevelLambdaParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/notFixedTopLevelLambdaParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nothingVsParameterBound.kt")
|
||||
public void testNothingVsParameterBound() throws Exception {
|
||||
@@ -17181,18 +17187,60 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/builderInference"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("assignmentUsingIncompletePCLACall.kt")
|
||||
public void testAssignmentUsingIncompletePCLACall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/assignmentUsingIncompletePCLACall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("bothOuterAndProperConstraints.kt")
|
||||
public void testBothOuterAndProperConstraints() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/bothOuterAndProperConstraints.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("builderInferenceAnnotationInLambdaWithTVExpectedType.kt")
|
||||
public void testBuilderInferenceAnnotationInLambdaWithTVExpectedType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/builderInferenceAnnotationInLambdaWithTVExpectedType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("builderPassedAsNamedArgument.kt")
|
||||
public void testBuilderPassedAsNamedArgument() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/builderPassedAsNamedArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callableReferenceAsArgumentForTransaction.kt")
|
||||
public void testCallableReferenceAsArgumentForTransaction() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/callableReferenceAsArgumentForTransaction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callableReferenceInsideInvokeCall.kt")
|
||||
public void testCallableReferenceInsideInvokeCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/callableReferenceInsideInvokeCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("changingResolveIfDontUseBuilderInference.kt")
|
||||
public void testChangingResolveIfDontUseBuilderInference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/changingResolveIfDontUseBuilderInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("considerContractsOfIncompleteCalls.kt")
|
||||
public void testConsiderContractsOfIncompleteCalls() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/considerContractsOfIncompleteCalls.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("elvisWithReturnInLastStatementOfLastLambda.kt")
|
||||
public void testElvisWithReturnInLastStatementOfLastLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/elvisWithReturnInLastStatementOfLastLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("equalityChecksOnIntegerTypes.kt")
|
||||
public void testEqualityChecksOnIntegerTypes() throws Exception {
|
||||
@@ -17211,18 +17259,66 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/errorOnStubReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingDependentVariablesForReceivers.kt")
|
||||
public void testFixingDependentVariablesForReceivers() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingDependentVariablesForReceivers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingDependentVariablesForReceiversInitial.kt")
|
||||
public void testFixingDependentVariablesForReceiversInitial() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingDependentVariablesForReceiversInitial.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingTVForLambadaWithShallowDependencyToOuter.kt")
|
||||
public void testFixingTVForLambadaWithShallowDependencyToOuter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingTVForLambadaWithShallowDependencyToOuter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingTVForLambadaWithShallowDependencyToOuter2.kt")
|
||||
public void testFixingTVForLambadaWithShallowDependencyToOuter2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingTVForLambadaWithShallowDependencyToOuter2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingTVForLambadaWithShallowDependencyToOuter3.kt")
|
||||
public void testFixingTVForLambadaWithShallowDependencyToOuter3() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingTVForLambadaWithShallowDependencyToOuter3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("incompleteCallInReturnArgumentsWithProperExpectType.kt")
|
||||
public void testIncompleteCallInReturnArgumentsWithProperExpectType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/incompleteCallInReturnArgumentsWithProperExpectType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("innerTvFixationFromLowerConstraints.kt")
|
||||
public void testInnerTvFixationFromLowerConstraints() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/innerTvFixationFromLowerConstraints.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invalidateKeys.kt")
|
||||
public void testInvalidateKeys() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/invalidateKeys.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invokeExtensionReceiverWithNotFixedVariables.kt")
|
||||
public void testInvokeExtensionReceiverWithNotFixedVariables() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/invokeExtensionReceiverWithNotFixedVariables.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invokeExtensionReceiverWithNotFixedVariablesInitial.kt")
|
||||
public void testInvokeExtensionReceiverWithNotFixedVariablesInitial() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/invokeExtensionReceiverWithNotFixedVariablesInitial.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt47744.kt")
|
||||
public void testKt47744() throws Exception {
|
||||
@@ -17331,6 +17427,36 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/labaledCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaParameterForBareType.kt")
|
||||
public void testLambdaParameterForBareType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/lambdaParameterForBareType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaParameterTypeFixation.kt")
|
||||
public void testLambdaParameterTypeFixation() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/lambdaParameterTypeFixation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lastLambdaStatementWithFixedVariables.kt")
|
||||
public void testLastLambdaStatementWithFixedVariables() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/lastLambdaStatementWithFixedVariables.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("manyArgsDifferentYields.kt")
|
||||
public void testManyArgsDifferentYields() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/manyArgsDifferentYields.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("memberScopeOfCapturedTypeForPostponedCall.kt")
|
||||
public void testMemberScopeOfCapturedTypeForPostponedCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/memberScopeOfCapturedTypeForPostponedCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multiLambdaRestriction.kt")
|
||||
public void testMultiLambdaRestriction() throws Exception {
|
||||
@@ -17343,12 +17469,42 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/multiLambdaRestrictionDisabled.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedLambdaWithLastLambdaContainingCall.kt")
|
||||
public void testNestedLambdaWithLastLambdaContainingCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/nestedLambdaWithLastLambdaContainingCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedLambdaWithNonLastYieldStatement.kt")
|
||||
public void testNestedLambdaWithNonLastYieldStatement() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/nestedLambdaWithNonLastYieldStatement.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedLambdasWithOverloadResolutionByReturnType.kt")
|
||||
public void testNestedLambdasWithOverloadResolutionByReturnType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/nestedLambdasWithOverloadResolutionByReturnType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("newTvFromLamdaAreNotCountedAsProper.kt")
|
||||
public void testNewTvFromLamdaAreNotCountedAsProper() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/newTvFromLamdaAreNotCountedAsProper.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noBuilderInferenceRestrictionReceiverInconsistency.kt")
|
||||
public void testNoBuilderInferenceRestrictionReceiverInconsistency() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/noBuilderInferenceRestrictionReceiverInconsistency.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overloadResolutionByLambdaReturnTypeInsideBI.kt")
|
||||
public void testOverloadResolutionByLambdaReturnTypeInsideBI() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/overloadResolutionByLambdaReturnTypeInsideBI.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertySubstitution.kt")
|
||||
public void testPropertySubstitution() throws Exception {
|
||||
@@ -17361,12 +17517,24 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/simpleLambdaInCallWithAnotherLambdaWithBuilderInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("singleBranchConditionLastStatementInLambda.kt")
|
||||
public void testSingleBranchConditionLastStatementInLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/singleBranchConditionLastStatementInLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("skipedUnresolvedInBuilderInferenceWithStubReceiverType.kt")
|
||||
public void testSkipedUnresolvedInBuilderInferenceWithStubReceiverType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/skipedUnresolvedInBuilderInferenceWithStubReceiverType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartCastOnBuilderController.kt")
|
||||
public void testSmartCastOnBuilderController() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/smartCastOnBuilderController.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("specialCallsWithCallableReferences.kt")
|
||||
public void testSpecialCallsWithCallableReferences() throws Exception {
|
||||
@@ -17415,6 +17583,24 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/specialCallsWithLambdas.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("substitutedSyntheticPropertyUsage.kt")
|
||||
public void testSubstitutedSyntheticPropertyUsage() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/substitutedSyntheticPropertyUsage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("theSimplestBuilder.kt")
|
||||
public void testTheSimplestBuilder() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/theSimplestBuilder.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenWithPropertyHavingSomePCLACallsWithinInitializer.kt")
|
||||
public void testWhenWithPropertyHavingSomePCLACallsWithinInitializer() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/whenWithPropertyHavingSomePCLACallsWithinInitializer.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withoutAnnotationDisabledFeature.kt")
|
||||
public void testWithoutAnnotationDisabledFeature() throws Exception {
|
||||
@@ -17512,6 +17698,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/stubTypes/renderingStubTypes.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleIntersection.kt")
|
||||
public void testSimpleIntersection() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/stubTypes/simpleIntersection.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stubTypeReceiverRestriction.kt")
|
||||
public void testStubTypeReceiverRestriction() throws Exception {
|
||||
@@ -41423,6 +41615,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt38667.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt38667Simplified.kt")
|
||||
public void testKt38667Simplified() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt38667Simplified.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt38766.kt")
|
||||
public void testKt38766() throws Exception {
|
||||
|
||||
+6
@@ -2755,6 +2755,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_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")
|
||||
|
||||
+6
@@ -2755,6 +2755,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_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")
|
||||
|
||||
+6
@@ -2755,6 +2755,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_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")
|
||||
|
||||
+12
@@ -2890,6 +2890,12 @@ public class FirLightTreeJvmIrTextTestGenerated extends AbstractFirLightTreeJvmI
|
||||
runTest("compiler/testData/ir/irText/firProblems/MultiList.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noErrorTypeAfterCaptureApproximation.kt")
|
||||
public void testNoErrorTypeAfterCaptureApproximation() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/firProblems/noErrorTypeAfterCaptureApproximation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("OutBox.kt")
|
||||
public void testOutBox() throws Exception {
|
||||
@@ -3240,6 +3246,12 @@ public class FirLightTreeJvmIrTextTestGenerated extends AbstractFirLightTreeJvmI
|
||||
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 {
|
||||
|
||||
compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirPsiJvmIrTextTestGenerated.java
Generated
+12
@@ -2890,6 +2890,12 @@ public class FirPsiJvmIrTextTestGenerated extends AbstractFirPsiJvmIrTextTest {
|
||||
runTest("compiler/testData/ir/irText/firProblems/MultiList.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noErrorTypeAfterCaptureApproximation.kt")
|
||||
public void testNoErrorTypeAfterCaptureApproximation() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/firProblems/noErrorTypeAfterCaptureApproximation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("OutBox.kt")
|
||||
public void testOutBox() throws Exception {
|
||||
@@ -3240,6 +3246,12 @@ public class FirPsiJvmIrTextTestGenerated extends AbstractFirPsiJvmIrTextTest {
|
||||
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 {
|
||||
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
class Buildee<CT> {
|
||||
var r: CT? = null
|
||||
fun yield(arg: CT) {
|
||||
r = arg
|
||||
}
|
||||
}
|
||||
|
||||
fun <FT> build(instructions: Buildee<FT>.() -> Unit): Buildee<FT> {
|
||||
return Buildee<FT>().apply(instructions)
|
||||
}
|
||||
|
||||
|
||||
class Logger {
|
||||
fun error() {
|
||||
throw RuntimeException("")
|
||||
}
|
||||
}
|
||||
|
||||
fun <T> logger(arg: T): Logger = Logger()
|
||||
|
||||
fun box(): String {
|
||||
val b = build {
|
||||
if ("".hashCode() == 0) {
|
||||
yield("OK")
|
||||
} else {
|
||||
logger(this).error()
|
||||
}
|
||||
}
|
||||
return b.r ?: "fail"
|
||||
}
|
||||
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
class Controller<T> {
|
||||
fun yield(t: T): Boolean = true
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
fun <T, R> T.bar(x: (T) -> R): R = TODO()
|
||||
|
||||
var children: String = TODO()
|
||||
|
||||
fun main(key: String?, v: Number) {
|
||||
generate {
|
||||
yield("")
|
||||
// Here, elvis-synthetic call is not completed yet, but it's variable K is already fixed
|
||||
// Assignment is used, because for that (outside of PCLA) we would use FULL completion
|
||||
children = key ?: v.bar { it.toString() }
|
||||
}.length
|
||||
}
|
||||
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
// FIR_IDENTICAL
|
||||
class Controller<T> {
|
||||
fun yield(t: T): Boolean = true
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
fun <R> foo(w: R, x: (R) -> R): R = TODO()
|
||||
|
||||
fun main() {
|
||||
generate {
|
||||
yield(1)
|
||||
yield(foo(2) { 3 })
|
||||
}
|
||||
}
|
||||
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
// FIR_IDENTICAL
|
||||
class Controller<T>
|
||||
|
||||
fun <S> generate1(g: suspend (Controller<S>) -> Unit): S = TODO()
|
||||
fun <S> generate2(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
fun foo(c: Controller<String>) {}
|
||||
|
||||
fun foo() {
|
||||
val t1 = generate1 {
|
||||
foo(c = it)
|
||||
}
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.String")!>t1<!>
|
||||
|
||||
val t2 = generate2 {
|
||||
foo(c = this)
|
||||
}
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.String")!>t2<!>
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
import kotlin.reflect.KMutableProperty0
|
||||
|
||||
class Controller<T>
|
||||
|
||||
fun <S1> generate(g: suspend Controller<S1>.() -> Unit): S1 = TODO()
|
||||
|
||||
interface ReadonlyPropertyKey<V1, in K1>
|
||||
|
||||
fun <V2 : Any, K2> Controller<K2>.implement(
|
||||
propertyKey: ReadonlyPropertyKey<V2, K2>,
|
||||
getter: () -> V2,
|
||||
) {
|
||||
}
|
||||
|
||||
fun <V3 : Any, K3> Controller<K3>.implement(
|
||||
propertyKey: ReadonlyPropertyKey<V3, K3>,
|
||||
prop: KMutableProperty0<V3?>,
|
||||
) {
|
||||
}
|
||||
|
||||
interface Screen {
|
||||
val screen: Any? get() = ""
|
||||
}
|
||||
|
||||
val Name: ReadonlyPropertyKey<String, Screen> = TODO()
|
||||
|
||||
val Screen.name: String
|
||||
get() = ""
|
||||
|
||||
class A : Screen {
|
||||
fun foo() {
|
||||
generate {
|
||||
implement(Name, ::name)
|
||||
}.screen
|
||||
}
|
||||
}
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
// FIR_IDENTICAL
|
||||
fun <X> mySuspendable(block: (MyContinuation<X>) -> Unit): X = TODO()
|
||||
|
||||
interface MyContinuation<in Y> {
|
||||
fun cancel(): Unit
|
||||
}
|
||||
|
||||
fun <Z> MyContinuation<Z>.resume(value: Z) {}
|
||||
|
||||
fun cancelOrProceed(handler: (cancel: () -> Unit, proceed: () -> Unit) -> Unit) {
|
||||
mySuspendable { x ->
|
||||
// Was exception: Expected expression 'FirCallableReferenceAccessImpl' to be resolved
|
||||
handler(x::cancel) { x.resume("") }
|
||||
}.length
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
// WITH_STDLIB
|
||||
import kotlin.contracts.ExperimentalContracts
|
||||
import kotlin.contracts.contract
|
||||
|
||||
class Controller<T> {
|
||||
fun yield(t: T): Boolean = true
|
||||
}
|
||||
|
||||
@OptIn(ExperimentalContracts::class)
|
||||
fun <R, B : Any> Controller<R>.ensureNotNull(value: B?, shift: () -> R): B {
|
||||
contract { returns() implies (value != null) }
|
||||
return value!!
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
fun bar(x: Int) {}
|
||||
|
||||
fun foo(x: Int?) {
|
||||
generate {
|
||||
ensureNotNull(x) { "" }
|
||||
bar(x)
|
||||
}
|
||||
}
|
||||
compiler/testData/diagnostics/tests/inference/builderInference/considerContractsOfIncompleteCalls.kt
Vendored
+24
@@ -0,0 +1,24 @@
|
||||
// WITH_STDLIB
|
||||
import kotlin.contracts.ExperimentalContracts
|
||||
import kotlin.contracts.contract
|
||||
|
||||
class Controller<T> {
|
||||
fun yield(t: T): Boolean = true
|
||||
}
|
||||
|
||||
@OptIn(ExperimentalContracts::class)
|
||||
fun <R, B : Any> Controller<R>.ensureNotNull(value: B?, shift: () -> R): B {
|
||||
contract { returns() implies (value != null) }
|
||||
return value!!
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
fun bar(x: Int) {}
|
||||
|
||||
fun foo(x: Int?) {
|
||||
generate {
|
||||
ensureNotNull(x) { "" }
|
||||
bar(<!DEBUG_INFO_SMARTCAST!>x<!>)
|
||||
}
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
class Controller<T1> {
|
||||
fun yield(t: T1) {}
|
||||
}
|
||||
|
||||
fun <T2> generate(
|
||||
block: Controller<T2>.() -> Unit
|
||||
): T2 = TODO()
|
||||
|
||||
class Res<E1> {
|
||||
val e: E1 get() = TODO()
|
||||
}
|
||||
|
||||
fun foo(x: String): Res<String> = TODO()
|
||||
|
||||
fun <E2> emptyRes(): Res<E2> = TODO()
|
||||
|
||||
fun <R> myRun(r: () -> R): R = TODO()
|
||||
|
||||
fun baz(x: String?) {
|
||||
generate {
|
||||
val y = myRun {
|
||||
foo(x ?: return@myRun emptyRes())
|
||||
}
|
||||
|
||||
yield(y)
|
||||
}.e.length
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
fun <E> generate(c: Controller<E>.() -> Unit): E = TODO()
|
||||
|
||||
interface In<in T1> {
|
||||
fun call(t: T1) {}
|
||||
}
|
||||
|
||||
interface Controller<F> {
|
||||
val prop: In<F>
|
||||
fun get(): F
|
||||
}
|
||||
|
||||
fun <F> id(f: F): F = TODO()
|
||||
fun <F2> select(e1: F2, e: F2): F2 = e
|
||||
|
||||
fun main() {
|
||||
generate {
|
||||
prop.call("")
|
||||
}.length
|
||||
|
||||
generate {
|
||||
id(prop).call("")
|
||||
}.length
|
||||
|
||||
generate {
|
||||
prop.call("")
|
||||
|
||||
get().<!UNRESOLVED_REFERENCE!>length<!>
|
||||
|
||||
id(get()).length
|
||||
}.length
|
||||
|
||||
generate {
|
||||
select("", get()).length
|
||||
}.length
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
fun <E> generate(c: Controller<E>.() -> Unit): E = TODO()
|
||||
|
||||
interface In<in T1> {
|
||||
fun call(t: T1) {}
|
||||
}
|
||||
|
||||
interface Controller<F> {
|
||||
val prop: In<F>
|
||||
fun get(): F
|
||||
}
|
||||
|
||||
fun <F> id(f: F): F = TODO()
|
||||
fun <F2> select(e1: F2, e: F2): F2 = e
|
||||
|
||||
fun main() {
|
||||
generate {
|
||||
prop.call("")
|
||||
}.length
|
||||
|
||||
generate {
|
||||
id(prop).call("")
|
||||
}.length
|
||||
|
||||
generate {
|
||||
prop.call("")
|
||||
|
||||
get().<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE, DEBUG_INFO_UNRESOLVED_WITH_TARGET, UNRESOLVED_REFERENCE!>length<!>
|
||||
|
||||
id(get()).<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE, DEBUG_INFO_UNRESOLVED_WITH_TARGET, UNRESOLVED_REFERENCE!>length<!>
|
||||
}.length
|
||||
|
||||
generate {
|
||||
select("", get()).length
|
||||
}.length
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
interface Units<UValue : Any>
|
||||
|
||||
class SimpleDoubleUnits : Units<Double>
|
||||
|
||||
fun <BLeft : Any> build(builderCode: RendererBuilder<BLeft>.() -> Unit) {}
|
||||
|
||||
class RendererBuilder<RBLeft : Any> {
|
||||
var leftScaleCurves: CurveSet<RBLeft>? = null
|
||||
|
||||
fun addDecorations(render: suspend RenderContext<RBLeft>.() -> Unit) {}
|
||||
}
|
||||
|
||||
interface RenderContext<RCLeft : Any> {
|
||||
val leftScaleValueToY: ((RCLeft) -> Double)?
|
||||
}
|
||||
|
||||
class State {
|
||||
suspend fun render() {
|
||||
build {
|
||||
leftScaleCurves = CurveSet(SimpleDoubleUnits())
|
||||
addDecorations {
|
||||
leftScaleValueToY!!(0.67)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class CurveSet<CY : Any>(units: Units<CY>)
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
class Controller<T> {
|
||||
fun yield(t: T): Boolean = true
|
||||
fun get(): T = TODO()
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
interface A {
|
||||
val a: Any
|
||||
}
|
||||
|
||||
interface B : A {
|
||||
val b: Any
|
||||
}
|
||||
|
||||
fun <R> myWith(r: R, b: R.() -> Unit) {}
|
||||
|
||||
fun main(aI: A, bI: B) {
|
||||
val x = generate {
|
||||
// B <: S
|
||||
yield(bI)
|
||||
|
||||
// S <: R
|
||||
// B <: R
|
||||
// R = B
|
||||
// S = B
|
||||
myWith(get()) {
|
||||
this.a
|
||||
this.b
|
||||
}
|
||||
|
||||
yield(<!ARGUMENT_TYPE_MISMATCH!>aI<!>)
|
||||
}
|
||||
|
||||
x.a
|
||||
x.b
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
class Controller<T> {
|
||||
fun yield(t: T): Boolean = true
|
||||
fun get(): T = TODO()
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
interface A {
|
||||
val a: Any
|
||||
}
|
||||
|
||||
interface B : A {
|
||||
val b: Any
|
||||
}
|
||||
|
||||
fun <R> myWith(r: R, b: R.() -> Unit) {}
|
||||
|
||||
fun main(aI: A, bI: B) {
|
||||
val x = generate {
|
||||
// B <: S
|
||||
yield(bI)
|
||||
|
||||
// S <: R
|
||||
// B <: R
|
||||
// R = B
|
||||
// S = B
|
||||
myWith(get()) {
|
||||
this.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE, DEBUG_INFO_UNRESOLVED_WITH_TARGET, UNRESOLVED_REFERENCE!>a<!>
|
||||
this.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE, DEBUG_INFO_UNRESOLVED_WITH_TARGET, UNRESOLVED_REFERENCE!>b<!>
|
||||
}
|
||||
|
||||
yield(aI)
|
||||
}
|
||||
|
||||
x.a
|
||||
x.<!UNRESOLVED_REFERENCE!>b<!>
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
class Controller<T> {
|
||||
fun yield(t: T): Boolean = true
|
||||
fun get(): T = TODO()
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
fun bar(x: Any) {}
|
||||
fun <R> myWith(r: R, b: (R) -> Unit) {}
|
||||
|
||||
fun main() {
|
||||
generate {
|
||||
// S <: Any
|
||||
bar(get())
|
||||
|
||||
// S <: R
|
||||
// Any <: R
|
||||
myWith(get()) {
|
||||
it.<!UNRESOLVED_REFERENCE!>length<!>
|
||||
}
|
||||
|
||||
yield("")
|
||||
}.length
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
class Controller<T> {
|
||||
fun yield(t: T): Boolean = true
|
||||
fun get(): T = TODO()
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
fun bar(x: Any) {}
|
||||
fun <R> myWith(r: R, b: (R) -> Unit) {}
|
||||
|
||||
fun main() {
|
||||
generate {
|
||||
// S <: Any
|
||||
bar(get())
|
||||
|
||||
// S <: R
|
||||
// Any <: R
|
||||
myWith(get()) {
|
||||
it.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE, DEBUG_INFO_UNRESOLVED_WITH_TARGET, UNRESOLVED_REFERENCE!>length<!>
|
||||
}
|
||||
|
||||
yield("")
|
||||
}.length
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
class Controller<T> {
|
||||
fun yield(t: T): Boolean = true
|
||||
fun get(): T = TODO()
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
fun <R> foo(w: R, x: (R) -> R): R = TODO()
|
||||
|
||||
fun <Q> materialize(): Q = TODO()
|
||||
|
||||
fun bar(x: String) {}
|
||||
|
||||
fun main() {
|
||||
generate {
|
||||
// S <: String
|
||||
bar(get())
|
||||
// R <: S
|
||||
// R <: String
|
||||
// R = String
|
||||
yield(foo(materialize()) { it.length.toString() })
|
||||
}
|
||||
|
||||
generate {
|
||||
// String <: S
|
||||
yield("")
|
||||
// S <: R
|
||||
// => String <: R
|
||||
// R = CST(S, String) = String
|
||||
foo(get()) { it.length.toString() }
|
||||
}
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
class Controller<T> {
|
||||
fun yield(t: T): Boolean = true
|
||||
fun get(): T = TODO()
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
fun <R> foo(w: R, x: (R) -> R): R = TODO()
|
||||
|
||||
fun <Q> materialize(): Q = TODO()
|
||||
|
||||
fun bar(x: String) {}
|
||||
|
||||
fun main() {
|
||||
generate {
|
||||
// S <: String
|
||||
bar(get())
|
||||
// R <: S
|
||||
// R <: String
|
||||
// R = String
|
||||
yield(foo(materialize()) { it.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE, DEBUG_INFO_UNRESOLVED_WITH_TARGET, UNRESOLVED_REFERENCE!>length<!>.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>toString<!>() })
|
||||
}
|
||||
|
||||
generate {
|
||||
// String <: S
|
||||
yield("")
|
||||
// S <: R
|
||||
// => String <: R
|
||||
// R = CST(S, String) = String
|
||||
foo(<!TYPE_MISMATCH, TYPE_MISMATCH!>get()<!>) { it.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE, DEBUG_INFO_UNRESOLVED_WITH_TARGET, UNRESOLVED_REFERENCE!>length<!>.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>toString<!>() }
|
||||
}
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
class Controller<T> {
|
||||
fun yield(t: T): Boolean = true
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
fun <E4> select(x: E4, y: E4) {}
|
||||
fun <E5> selectL(x: E5, y: E5, l: (E5) -> Unit) {}
|
||||
|
||||
fun main(x: Controller<String>) {
|
||||
generate {
|
||||
// Just adding the constraints
|
||||
// Controller<String> <: E4
|
||||
// Controller<S> <: E4
|
||||
// No fixation is required
|
||||
select(x, this)
|
||||
}.length
|
||||
|
||||
generate {
|
||||
// Adding the constraints
|
||||
// Controller<String> <: E5
|
||||
// Controller<S> <: E5
|
||||
// But to analyze lambda we fix E5 to CST(Controller<String>, Controller<S>) = Controller<CST(String, S)>
|
||||
// The question is what is CST(String, S)
|
||||
// And current answer in K2 is that it's String just the same way as when while fixating some TV, it has improper lower constraits
|
||||
// See org.jetbrains.kotlin.resolve.calls.inference.components.ResultTypeResolver.prepareLowerConstraints
|
||||
selectL(x, this) { x ->
|
||||
x.yield(<!ARGUMENT_TYPE_MISMATCH!>1<!>)
|
||||
x.yield("")
|
||||
}
|
||||
}.length
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
class Controller<T> {
|
||||
fun yield(t: T): Boolean = true
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
fun <E4> select(x: E4, y: E4) {}
|
||||
fun <E5> selectL(x: E5, y: E5, l: (E5) -> Unit) {}
|
||||
|
||||
fun main(x: Controller<String>) {
|
||||
generate {
|
||||
// Just adding the constraints
|
||||
// Controller<String> <: E4
|
||||
// Controller<S> <: E4
|
||||
// No fixation is required
|
||||
select(x, this)
|
||||
}.length
|
||||
|
||||
generate {
|
||||
// Adding the constraints
|
||||
// Controller<String> <: E5
|
||||
// Controller<S> <: E5
|
||||
// But to analyze lambda we fix E5 to CST(Controller<String>, Controller<S>) = Controller<CST(String, S)>
|
||||
// The question is what is CST(String, S)
|
||||
// And current answer in K2 is that it's String just the same way as when while fixating some TV, it has improper lower constraits
|
||||
// See org.jetbrains.kotlin.resolve.calls.inference.components.ResultTypeResolver.prepareLowerConstraints
|
||||
selectL(x, this) { x ->
|
||||
x.yield(<!CONSTANT_EXPECTED_TYPE_MISMATCH!>1<!>)
|
||||
x.yield(<!TYPE_MISMATCH!>""<!>)
|
||||
}
|
||||
}.length
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
interface Controller<F> {
|
||||
fun yield(t: F)
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
fun foo(
|
||||
prop: Controller<String>.() -> Unit
|
||||
) {
|
||||
generate {
|
||||
prop()
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
interface Controller<F> {
|
||||
fun yield(t: F)
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
interface Topic<F>
|
||||
|
||||
fun <E : Any> subscribe(topic: Topic<E>, handler: E) {}
|
||||
|
||||
fun <L : Any, K> messageBusFlow(
|
||||
topic: Topic<L>,
|
||||
initialValue: (suspend () -> K)? = null,
|
||||
listener: suspend Controller<K>.() -> L
|
||||
) {
|
||||
generate {
|
||||
initialValue?.let { yield(it()) }
|
||||
subscribe(topic, listener())
|
||||
}
|
||||
}
|
||||
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
// ISSUE: KT-64840 (K2/PCLA difference)
|
||||
class Controller<T> {
|
||||
fun yield(t: T): Boolean = true
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
interface A<F> {
|
||||
val a: F?
|
||||
}
|
||||
|
||||
interface B<G> : A<G>
|
||||
|
||||
fun <X> predicate(x: X, c: Controller<in X>, p: (X) -> Boolean) {}
|
||||
|
||||
fun main(a: A<*>) {
|
||||
generate {
|
||||
predicate(a, this) { it is <!NO_TYPE_ARGUMENTS_ON_RHS!>B<!> }
|
||||
}.a
|
||||
}
|
||||
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
// ISSUE: KT-64840 (K2/PCLA difference)
|
||||
class Controller<T> {
|
||||
fun yield(t: T): Boolean = true
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
interface A<F> {
|
||||
val a: F?
|
||||
}
|
||||
|
||||
interface B<G> : A<G>
|
||||
|
||||
fun <X> predicate(x: X, c: Controller<in X>, p: (X) -> Boolean) {}
|
||||
|
||||
fun main(a: A<*>) {
|
||||
generate {
|
||||
predicate(a, this) { it is B }
|
||||
}.a
|
||||
}
|
||||
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
// FIR_IDENTICAL
|
||||
class Controller<T> {
|
||||
fun yield(t: T): Boolean = true
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
fun foo() {
|
||||
val t = generate {
|
||||
yield("")
|
||||
bar(this, "") { it.length }
|
||||
}
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.String")!>t<!>
|
||||
}
|
||||
|
||||
fun <R, F : Controller<in R>> bar(f: F, x: R, b: (R) -> Unit) {}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
// FIR_IDENTICAL
|
||||
class Controller<T> {
|
||||
fun yield(t: T): Boolean = true
|
||||
}
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
fun <E, F> myMap(x: Controller<F>, y: E, b: (E) -> F) {}
|
||||
|
||||
fun <G> myTake(t: G, predicate: (G) -> Unit): G = TODO()
|
||||
|
||||
fun foo() {
|
||||
generate {
|
||||
myMap(this, "") {
|
||||
// NB: The statement below was relevant some time ago, but just it doesn't seem so, but left it for history
|
||||
// Here, to start analysis of the lambda, we need to fix the G variable and after that,
|
||||
// when we add a subtyping constraint from the whole `myTake` call to the last statement of the `myMap` lambda,
|
||||
// the return type of the former call contains fixed variable G.
|
||||
// That is quite irregular for non-PCLA cases, because ther we don't fix TVs that belong to return types.
|
||||
myTake("") { x ->
|
||||
x.length
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
// FIR_IDENTICAL
|
||||
class Controller<T> {
|
||||
fun yield(t: T): Boolean = true
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
interface Base
|
||||
interface Derived : Base
|
||||
|
||||
fun foo(
|
||||
base: Base,
|
||||
derived: Derived,
|
||||
) {
|
||||
val t = generate {
|
||||
twoBooleans(yield(base), yield(derived))
|
||||
}
|
||||
|
||||
// Should be Base, not just Derived
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("Base")!>t<!>
|
||||
}
|
||||
|
||||
fun twoBooleans(x: Boolean, y: Boolean) {}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
// FIR_IDENTICAL
|
||||
class Controller<T> {
|
||||
fun yield(t: T): String = "1"
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
class MyAsserter<E : MyAsserter<E>> {
|
||||
fun self(): E = TODO()
|
||||
fun member() {}
|
||||
}
|
||||
|
||||
fun assertThat(x: String): MyAsserter<*> = TODO()
|
||||
|
||||
fun bar(): String? = null
|
||||
|
||||
fun check(b: Boolean, l: List<String>) {
|
||||
generate {
|
||||
assertThat("")
|
||||
.self()
|
||||
.member()
|
||||
|
||||
assertThat(bar()!!)
|
||||
.self()
|
||||
.member()
|
||||
|
||||
assertThat(yield(""))
|
||||
.self()
|
||||
.member()
|
||||
}.length
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
class Controller<T> {
|
||||
fun yield(t: T) {}
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit) {}
|
||||
|
||||
fun main() {
|
||||
generate {
|
||||
myRun {
|
||||
yield("")
|
||||
myLet {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun myLet(x: () -> Unit) {}
|
||||
fun <E> myRun(x: () -> E) {}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
fun <T> myRun(runnable: () -> T): T = TODO()
|
||||
|
||||
interface Controller<F> {
|
||||
fun yield(t: F)
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
fun foo(x: List<String>) {
|
||||
val y = generate {
|
||||
myRun {
|
||||
yield("")
|
||||
Unit
|
||||
}
|
||||
}
|
||||
|
||||
y.length
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
|
||||
class Controller<T> {
|
||||
fun yield(t: T): Boolean = true
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
fun foo(x1: List<String>, x2: List<String>) {
|
||||
generate {
|
||||
yield(
|
||||
x1.flatMap1 {
|
||||
x2.map2 { "" }
|
||||
}
|
||||
)
|
||||
}.length
|
||||
}
|
||||
|
||||
fun <T1> Iterable<T1>.flatMap1(transform: (T1) -> String): String = TODO()
|
||||
|
||||
@OptIn(kotlin.experimental.ExperimentalTypeInference::class)
|
||||
@OverloadResolutionByLambdaReturnType
|
||||
@kotlin.jvm.JvmName("flatMapSequence")
|
||||
fun <T2> Iterable<T2>.flatMap1(transform: (T2) -> Int): Int = TODO()
|
||||
|
||||
fun <T3, R3> T3.map2(transform: (T3) -> R3): R3 = TODO()
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
// FIR_IDENTICAL
|
||||
class Controller<T> {
|
||||
fun yield(t: T): Boolean = true
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
class Out<out X>
|
||||
|
||||
fun <T1> catching(body: suspend () -> T1): Out<T1> = TODO()
|
||||
fun <R2, T2 : R2> Out<T2>.getOrElse2(onFailure: () -> R2): R2 = TODO()
|
||||
|
||||
fun <T3> myEmptyList(): List<T3> = TODO()
|
||||
|
||||
fun main(x: List<String>) {
|
||||
|
||||
generate {
|
||||
val languages = catching { x }.getOrElse2 {
|
||||
myEmptyList()
|
||||
}
|
||||
|
||||
yield(languages[0].length)
|
||||
}
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
// WITH_RUNTIME
|
||||
|
||||
interface A1<X1>
|
||||
interface A2<X2>
|
||||
interface A3<X2>
|
||||
interface Res1<Y>
|
||||
interface Res2<Z>
|
||||
|
||||
class Controller<T> {
|
||||
fun yield(t: T) {}
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
fun main(src: A1<String>, res1: Res1<Int>) {
|
||||
generate {
|
||||
foo(src) { }
|
||||
// At this stage we've got E type variable not fixed
|
||||
// And two `bar` overloads one of which we should choose depending on the return type
|
||||
// But we can't _simply_ start lambda analysis with ConstraintSystemCompletionMode.UNTIL_FIRST_LAMBDA
|
||||
// because currently it only allows lambda analysis for completely ready
|
||||
.bar { y ->
|
||||
res1
|
||||
}
|
||||
|
||||
yield("")
|
||||
}.length
|
||||
}
|
||||
|
||||
fun <E> foo(x: A1<E>, block: () -> Unit): A2<A3<E>> = TODO()
|
||||
|
||||
fun <V1> A2<V1>.bar(transform: (A2<V1>) -> Res1<Int>) {}
|
||||
|
||||
@OptIn(kotlin.experimental.ExperimentalTypeInference::class)
|
||||
@OverloadResolutionByLambdaReturnType
|
||||
@kotlin.jvm.JvmName("bar1")
|
||||
fun <V2> A2<V2>.bar(transform: (A2<V2>) -> Res2<Int>) {}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
class Controller<T> {
|
||||
fun yield(t: T): Boolean = true
|
||||
}
|
||||
|
||||
fun <R> myRun(b: () -> R) {}
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
fun foo(b: Boolean) {
|
||||
generate {
|
||||
myRun {
|
||||
if (b) {
|
||||
yield("")
|
||||
}
|
||||
}
|
||||
Unit
|
||||
}
|
||||
}
|
||||
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
class Controller<T2>
|
||||
|
||||
fun <T1> generate(
|
||||
block: (Controller<T1>) -> Unit
|
||||
): T1 = TODO()
|
||||
|
||||
fun <E3> foobar(
|
||||
cont: Controller<E3>
|
||||
) {}
|
||||
|
||||
fun foo() {
|
||||
generate { cont ->
|
||||
foobar(cont <!USELESS_CAST!>as Controller<String><!>)
|
||||
baz(cont)
|
||||
}
|
||||
}
|
||||
|
||||
fun baz(cont: Controller<String>) {}
|
||||
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
class Controller<T2>
|
||||
|
||||
fun <T1> generate(
|
||||
block: (Controller<T1>) -> Unit
|
||||
): T1 = TODO()
|
||||
|
||||
fun <E3> foobar(
|
||||
cont: Controller<E3>
|
||||
) {}
|
||||
|
||||
fun foo() {
|
||||
generate { cont ->
|
||||
foobar(cont as Controller<String>)
|
||||
baz(cont)
|
||||
}
|
||||
}
|
||||
|
||||
fun baz(cont: Controller<String>) {}
|
||||
Vendored
+58
@@ -0,0 +1,58 @@
|
||||
fun <R1> build(block: TestInterface<R1>.() -> Unit): R1 = TODO()
|
||||
|
||||
interface TestInterface<R> {
|
||||
fun emit(r: R)
|
||||
fun get(): R
|
||||
}
|
||||
|
||||
fun <X> select(x: X, y: X): X = x
|
||||
|
||||
fun test() {
|
||||
val ret0 = build l1@{
|
||||
emit("1")
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Unit")!>build l2@{
|
||||
emit(1)
|
||||
select(this@l1.get(), get())
|
||||
}<!>
|
||||
}
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Comparable<*> & java.io.Serializable")!>ret0<!>
|
||||
|
||||
val ret1 = build l1@{
|
||||
emit("1")
|
||||
|
||||
build l2@{
|
||||
emit(1)
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Any")!>select(this@l1.get(), get())<!>
|
||||
}
|
||||
}
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Comparable<*> & java.io.Serializable")!>ret1<!>
|
||||
|
||||
val ret2 = build l1@{
|
||||
emit("1")
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Int")!>build l2@{
|
||||
emit(1)
|
||||
select(this@l1.get(), get())
|
||||
""
|
||||
}<!>
|
||||
""
|
||||
}
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.String")!>ret2<!>
|
||||
|
||||
val ret3 = build l1@{
|
||||
emit("1")
|
||||
|
||||
build l2@{
|
||||
emit(1)
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Comparable<*> & java.io.Serializable")!>select(this@l1.get(), get())<!>
|
||||
""
|
||||
}
|
||||
""
|
||||
}
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.String")!>ret3<!>
|
||||
}
|
||||
Vendored
+58
@@ -0,0 +1,58 @@
|
||||
fun <R1> build(block: TestInterface<R1>.() -> Unit): R1 = TODO()
|
||||
|
||||
interface TestInterface<R> {
|
||||
fun emit(r: R)
|
||||
fun get(): R
|
||||
}
|
||||
|
||||
fun <X> select(x: X, y: X): X = x
|
||||
|
||||
fun test() {
|
||||
val ret0 = build l1@{
|
||||
emit("1")
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Unit")!>build l2@{
|
||||
emit(1)
|
||||
select(<!TYPE_MISMATCH, TYPE_MISMATCH, TYPE_MISMATCH!>this@l1.get()<!>, get())
|
||||
}<!>
|
||||
}
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("{Comparable<*> & java.io.Serializable}")!>ret0<!>
|
||||
|
||||
val ret1 = build l1@{
|
||||
emit("1")
|
||||
|
||||
build l2@{
|
||||
emit(1)
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Unit")!>select(<!TYPE_MISMATCH, TYPE_MISMATCH, TYPE_MISMATCH!>this@l1.get()<!>, get())<!>
|
||||
}
|
||||
}
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("{Comparable<*> & java.io.Serializable}")!>ret1<!>
|
||||
|
||||
val ret2 = build l1@{
|
||||
emit("1")
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Int")!>build l2@{
|
||||
emit(1)
|
||||
select(this@l1.get(), get())
|
||||
""
|
||||
}<!>
|
||||
""
|
||||
}
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.String")!>ret2<!>
|
||||
|
||||
val ret3 = build l1@{
|
||||
emit("1")
|
||||
|
||||
build l2@{
|
||||
emit(1)
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Any?")!>select(this@l1.get(), get())<!>
|
||||
""
|
||||
}
|
||||
""
|
||||
}
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.String")!>ret3<!>
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
// FILE: GenericJava.java
|
||||
public class GenericJava<F> {
|
||||
public java.util.List<F> getFoo() {}
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
class Controller<T> {
|
||||
fun yield(t: T) {}
|
||||
|
||||
fun gg(): GenericJava<T> = TODO()
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit) {}
|
||||
|
||||
fun main() {
|
||||
generate {
|
||||
yield("")
|
||||
gg().foo
|
||||
}
|
||||
}
|
||||
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
// FILE: GenericJava.java
|
||||
public class GenericJava<F> {
|
||||
public java.util.List<F> getFoo() {}
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
class Controller<T> {
|
||||
fun yield(t: T) {}
|
||||
|
||||
fun gg(): GenericJava<T> = TODO()
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit) {}
|
||||
|
||||
fun main() {
|
||||
generate {
|
||||
yield("")
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("(kotlin.collections.MutableList<(TypeVariable(S)..TypeVariable(S)?)>..kotlin.collections.List<(TypeVariable(S)..TypeVariable(S)?)>?)")!>gg().foo<!>
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// FIR_IDENTICAL
|
||||
interface Box<F> {
|
||||
fun add(f: F)
|
||||
fun get(): F
|
||||
}
|
||||
|
||||
fun <E> myBuilder(x: Box<E>.() -> Unit): Box<E> = TODO()
|
||||
|
||||
fun main() {
|
||||
myBuilder {
|
||||
add("")
|
||||
}.get().length
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
interface Controller<F> {
|
||||
fun yield(t: F)
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
fun foo(b: Boolean, buffer: Collection<String>) {
|
||||
generate {
|
||||
if (b) {
|
||||
val x: String = myLaunch {
|
||||
myRun {
|
||||
yield(buffer.toTypedArray2())
|
||||
}
|
||||
}
|
||||
}
|
||||
}.get(0).length
|
||||
}
|
||||
|
||||
fun <E> Collection<E>.toTypedArray2(): Array<E> = TODO()
|
||||
|
||||
fun myLaunch(
|
||||
block: () -> Unit
|
||||
): String = TODO()
|
||||
|
||||
fun myRun(action: () -> Unit): Unit = TODO()
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// FIR_IDENTICAL
|
||||
class Controller<T> {
|
||||
fun yield(t: T): Boolean = true
|
||||
}
|
||||
|
||||
fun <T1> Controller<T1>.forEach(x: (T1) -> Unit) {}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
fun main() {
|
||||
generate {
|
||||
forEach {
|
||||
foo(it)
|
||||
}
|
||||
}.length
|
||||
}
|
||||
|
||||
fun foo(x: String) {}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
// FIR_IDENTICAL
|
||||
// ISSUE: KT-38667
|
||||
|
||||
interface PropKey<T1>
|
||||
abstract class AnimationBuilder<T2>
|
||||
class TransitionSpec<S> {
|
||||
fun <E> tween(init: AnimationBuilder<E>.() -> Unit): AnimationBuilder<E> = TODO()
|
||||
fun <F> PropKey<F>.using(builder: AnimationBuilder<F>) {}
|
||||
}
|
||||
class TransitionDefinition<X> {
|
||||
fun transition(fromState: X, init: TransitionSpec<X>.() -> Unit) {}
|
||||
}
|
||||
|
||||
fun <T3> transitionDefinition(init: TransitionDefinition<T3>.() -> Unit) {}
|
||||
|
||||
fun main(intProp: PropKey<Int>, w: Int) {
|
||||
transitionDefinition {
|
||||
transition(w) {
|
||||
intProp.using(tween {})
|
||||
}
|
||||
}
|
||||
}
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
FILE fqName:<root> fileName:/noErrorTypeAfterCaptureApproximation.kt
|
||||
CLASS CLASS name:Inv1 modality:FINAL visibility:public superTypes:[kotlin.Any]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Inv1<X of <root>.Inv1>
|
||||
TYPE_PARAMETER name:X index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.Inv1<X of <root>.Inv1> [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in kotlin.Any'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inv1 modality:FINAL visibility:public superTypes:[kotlin.Any]'
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
CLASS CLASS name:Inv2 modality:FINAL visibility:public superTypes:[kotlin.Any]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Inv2<Y of <root>.Inv2>
|
||||
TYPE_PARAMETER name:Y index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.Inv2<Y of <root>.Inv2> [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in kotlin.Any'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inv2 modality:FINAL visibility:public superTypes:[kotlin.Any]'
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN name:useSelectOptions visibility:internal modality:FINAL <F> (options:<root>.Inv1<out F of <root>.useSelectOptions>) returnType:<root>.Inv1<out <root>.Inv2<F of <root>.useSelectOptions>>
|
||||
TYPE_PARAMETER name:F index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
VALUE_PARAMETER name:options index:0 type:<root>.Inv1<out F of <root>.useSelectOptions>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='internal final fun useSelectOptions <F> (options: <root>.Inv1<out F of <root>.useSelectOptions>): <root>.Inv1<out <root>.Inv2<F of <root>.useSelectOptions>> declared in <root>'
|
||||
CALL 'public final fun myRun <T> (callback: kotlin.Function0<T of <root>.myRun>): T of <root>.myRun declared in <root>' type=<root>.Inv1<out <root>.Inv2<F of <root>.useSelectOptions>> origin=null
|
||||
<T>: <root>.Inv1<out <root>.Inv2<F of <root>.useSelectOptions>>
|
||||
callback: FUN_EXPR type=kotlin.Function0<<root>.Inv1<out <root>.Inv2<F of <root>.useSelectOptions>>> origin=LAMBDA
|
||||
FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL <> () returnType:<root>.Inv1<out <root>.Inv2<F of <root>.useSelectOptions>>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='local final fun <anonymous> (): <root>.Inv1<out <root>.Inv2<F of <root>.useSelectOptions>> declared in <root>.useSelectOptions'
|
||||
CALL 'private final fun getSelectOptions <G> (options: <root>.Inv1<out G of <root>.getSelectOptions>): <root>.Inv1<out <root>.Inv2<G of <root>.getSelectOptions>> declared in <root>' type=<root>.Inv1<out <root>.Inv2<F of <root>.useSelectOptions>> origin=null
|
||||
<G>: F of <root>.useSelectOptions
|
||||
options: GET_VAR 'options: <root>.Inv1<out F of <root>.useSelectOptions> declared in <root>.useSelectOptions' type=<root>.Inv1<out F of <root>.useSelectOptions> origin=null
|
||||
FUN name:getSelectOptions visibility:private modality:FINAL <G> (options:<root>.Inv1<out G of <root>.getSelectOptions>) returnType:<root>.Inv1<out <root>.Inv2<G of <root>.getSelectOptions>>
|
||||
TYPE_PARAMETER name:G index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
VALUE_PARAMETER name:options index:0 type:<root>.Inv1<out G of <root>.getSelectOptions>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='private final fun getSelectOptions <G> (options: <root>.Inv1<out G of <root>.getSelectOptions>): <root>.Inv1<out <root>.Inv2<G of <root>.getSelectOptions>> declared in <root>'
|
||||
CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null
|
||||
FUN name:myRun visibility:public modality:FINAL <T> (callback:kotlin.Function0<T of <root>.myRun>) returnType:T of <root>.myRun
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
VALUE_PARAMETER name:callback index:0 type:kotlin.Function0<T of <root>.myRun>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public final fun myRun <T> (callback: kotlin.Function0<T of <root>.myRun>): T of <root>.myRun declared in <root>'
|
||||
CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin' type=kotlin.Nothing origin=null
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// FIR_IDENTICAL
|
||||
class Inv1<X>
|
||||
class Inv2<Y>
|
||||
|
||||
internal fun <F> useSelectOptions(
|
||||
options: Inv1<out F>,
|
||||
): Inv1<out Inv2<F>> =
|
||||
myRun {
|
||||
getSelectOptions(options)
|
||||
}
|
||||
|
||||
private fun <G> getSelectOptions(
|
||||
options: Inv1<out G>,
|
||||
): Inv1<out Inv2<G>> = TODO()
|
||||
|
||||
fun <T> myRun(
|
||||
callback: () -> T,
|
||||
): T = TODO()
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
class Inv1<X : Any?> {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class Inv2<Y : Any?> {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
internal fun <F : Any?> useSelectOptions(options: Inv1<out F>): Inv1<out Inv2<F>> {
|
||||
return myRun<Inv1<out Inv2<F>>>(callback = local fun <anonymous>(): Inv1<out Inv2<F>> {
|
||||
return getSelectOptions<F>(options = options)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
private fun <G : Any?> getSelectOptions(options: Inv1<out G>): Inv1<out Inv2<G>> {
|
||||
return TODO()
|
||||
}
|
||||
|
||||
fun <T : Any?> myRun(callback: Function0<T>): T {
|
||||
return TODO()
|
||||
}
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
// CHECK:
|
||||
// Mangled name: Inv1
|
||||
// Public signature: /Inv1|null[0]
|
||||
class Inv1<X : Any?> {
|
||||
// CHECK:
|
||||
// Mangled name: Inv1#<init>(){}
|
||||
// Public signature: /Inv1.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
}
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: Inv2
|
||||
// Public signature: /Inv2|null[0]
|
||||
class Inv2<Y : Any?> {
|
||||
// CHECK:
|
||||
// Mangled name: Inv2#<init>(){}
|
||||
// Public signature: /Inv2.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
}
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #getSelectOptions(Inv1<out|0:0>){0§<kotlin.Any?>}Inv1<out|Inv2<0:0>>
|
||||
// Public signature: [ File '/noErrorTypeAfterCaptureApproximation.kt' <- /getSelectOptions|-2121566878546647451[0] ]
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #getSelectOptions(Inv1<out|0:0>){0§<kotlin.Any?>}
|
||||
// Public signature: [ File '/noErrorTypeAfterCaptureApproximation.kt' <- /getSelectOptions|-4741332616265873823[0] ]
|
||||
private fun <G : Any?> getSelectOptions(options: Inv1<out G>): Inv1<out Inv2<G>>
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #myRun(kotlin.Function0<0:0>){0§<kotlin.Any?>}0:0
|
||||
// Public signature: /myRun|-4555774550754215835[0]
|
||||
// Public signature debug description: myRun(kotlin.Function0<0:0>){0§<kotlin.Any?>}0:0
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #myRun(kotlin.Function0<0:0>){0§<kotlin.Any?>}
|
||||
// Public signature: /myRun|1886570319999512118[0]
|
||||
// Public signature debug description: myRun(kotlin.Function0<0:0>){0§<kotlin.Any?>}
|
||||
fun <T : Any?> myRun(callback: Function0<T>): T
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #useSelectOptions(Inv1<out|0:0>){0§<kotlin.Any?>}Inv1<out|Inv2<0:0>>
|
||||
// Public signature: /useSelectOptions|-100409295329799165[0]
|
||||
// Public signature debug description: useSelectOptions(Inv1<out|0:0>){0§<kotlin.Any?>}Inv1<out|Inv2<0:0>>
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #useSelectOptions(Inv1<out|0:0>){0§<kotlin.Any?>}
|
||||
// Public signature: /useSelectOptions|3229886791495085251[0]
|
||||
// Public signature debug description: useSelectOptions(Inv1<out|0:0>){0§<kotlin.Any?>}
|
||||
internal fun <F : Any?> useSelectOptions(options: Inv1<out F>): Inv1<out Inv2<F>>
|
||||
+94
@@ -0,0 +1,94 @@
|
||||
FILE fqName:<root> fileName:/noSyntheticTypeParameterLeftAfterPCLA.kt
|
||||
FUN name:box visibility:public modality:FINAL <> (b:kotlin.Boolean) returnType:kotlin.Unit
|
||||
VALUE_PARAMETER name:b index:0 type:kotlin.Boolean
|
||||
BLOCK_BODY
|
||||
CALL 'public final fun generate <S> (g: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.Controller<S of <root>.generate>, kotlin.Unit>): kotlin.Unit declared in <root>' type=kotlin.Unit origin=null
|
||||
<S>: kotlin.Unit
|
||||
g: FUN_EXPR type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.Controller<kotlin.Unit>, kotlin.Unit> origin=LAMBDA
|
||||
FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL <> ($receiver:<root>.Controller<kotlin.Unit>) returnType:kotlin.Unit [suspend]
|
||||
$receiver: VALUE_PARAMETER name:$this$generate type:<root>.Controller<kotlin.Unit>
|
||||
BLOCK_BODY
|
||||
CALL 'public final fun expectIntf (intf: <root>.Intf): kotlin.Unit declared in <root>' type=kotlin.Unit origin=null
|
||||
intf: BLOCK type=<root>.box.<anonymous>.<no name provided> origin=OBJECT_LITERAL
|
||||
CLASS CLASS name:<no name provided> modality:FINAL visibility:local superTypes:[<root>.Intf]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.box.<anonymous>.<no name provided>
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.box.<anonymous>.<no name provided> [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in kotlin.Any'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:<no name provided> modality:FINAL visibility:local superTypes:[<root>.Intf]'
|
||||
FUN name:foo visibility:public modality:OPEN <> ($this:<root>.box.<anonymous>.<no name provided>) returnType:kotlin.Unit
|
||||
overridden:
|
||||
public abstract fun foo (): kotlin.Unit declared in <root>.Intf
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.box.<anonymous>.<no name provided>
|
||||
BLOCK_BODY
|
||||
WHEN type=kotlin.Unit origin=IF
|
||||
BRANCH
|
||||
if: GET_VAR 'b: kotlin.Boolean declared in <root>.box' type=kotlin.Boolean origin=null
|
||||
then: BLOCK type=kotlin.Unit origin=null
|
||||
CALL 'public final fun someUnit (): kotlin.Unit declared in <root>' type=kotlin.Unit origin=null
|
||||
BRANCH
|
||||
if: CONST Boolean type=kotlin.Boolean value=true
|
||||
then: BLOCK type=kotlin.Unit origin=null
|
||||
CALL 'public abstract fun yield (t: F of <root>.Controller): kotlin.Unit declared in <root>.Controller' type=kotlin.Unit origin=null
|
||||
$this: GET_VAR '$this$generate: <root>.Controller<kotlin.Unit> declared in <root>.box.<anonymous>' type=<root>.Controller<kotlin.Unit> origin=null
|
||||
t: GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.Intf
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.Intf
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in <root>.Intf
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.box.<anonymous>.<no name provided>' type=<root>.box.<anonymous>.<no name provided> origin=OBJECT_LITERAL
|
||||
CALL 'public final fun someUnit (): kotlin.Unit declared in <root>' type=kotlin.Unit origin=null
|
||||
FUN name:expectIntf visibility:public modality:FINAL <> (intf:<root>.Intf) returnType:kotlin.Unit
|
||||
VALUE_PARAMETER name:intf index:0 type:<root>.Intf
|
||||
BLOCK_BODY
|
||||
FUN name:someUnit visibility:public modality:FINAL <> () returnType:kotlin.Unit
|
||||
BLOCK_BODY
|
||||
CLASS INTERFACE name:Intf modality:ABSTRACT visibility:public superTypes:[kotlin.Any]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Intf
|
||||
FUN name:foo visibility:public modality:ABSTRACT <> ($this:<root>.Intf) returnType:kotlin.Unit
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.Intf
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
CLASS INTERFACE name:Controller modality:ABSTRACT visibility:public superTypes:[kotlin.Any]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Controller<F of <root>.Controller>
|
||||
TYPE_PARAMETER name:F index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
FUN name:yield visibility:public modality:ABSTRACT <> ($this:<root>.Controller<F of <root>.Controller>, t:F of <root>.Controller) returnType:kotlin.Unit
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.Controller<F of <root>.Controller>
|
||||
VALUE_PARAMETER name:t index:0 type:F of <root>.Controller
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN name:generate visibility:public modality:FINAL <S> (g:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.Controller<S of <root>.generate>, kotlin.Unit>) returnType:kotlin.Unit
|
||||
TYPE_PARAMETER name:S index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
VALUE_PARAMETER name:g index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<<root>.Controller<S of <root>.generate>, kotlin.Unit>
|
||||
BLOCK_BODY
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
fun box(b: Boolean) {
|
||||
generate {
|
||||
expectIntf(object : Intf {
|
||||
override fun foo() {
|
||||
if (b) {
|
||||
// Do not debounce regex toggle event.
|
||||
someUnit()
|
||||
}
|
||||
else {
|
||||
yield(Unit)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
someUnit()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun expectIntf(intf: Intf) {}
|
||||
|
||||
fun someUnit() {}
|
||||
|
||||
interface Intf {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
interface Controller<F> {
|
||||
fun yield(t: F)
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit) {}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
fun box(b: Boolean) {
|
||||
generate<Unit>(g = local suspend fun Controller<Unit>.<anonymous>() {
|
||||
expectIntf(intf = { // BLOCK
|
||||
local class <no name provided> : Intf {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
override fun foo() {
|
||||
when {
|
||||
b -> { // BLOCK
|
||||
someUnit()
|
||||
}
|
||||
else -> { // BLOCK
|
||||
$this$generate.yield(t = Unit)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
<no name provided>()
|
||||
})
|
||||
someUnit()
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
fun expectIntf(intf: Intf) {
|
||||
}
|
||||
|
||||
fun someUnit() {
|
||||
}
|
||||
|
||||
interface Intf {
|
||||
abstract fun foo()
|
||||
|
||||
}
|
||||
|
||||
interface Controller<F : Any?> {
|
||||
abstract fun yield(t: F)
|
||||
|
||||
}
|
||||
|
||||
fun <S : Any?> generate(g: @ExtensionFunctionType SuspendFunction1<Controller<S>, Unit>) {
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
// CHECK:
|
||||
// Mangled name: Controller
|
||||
// Public signature: /Controller|null[0]
|
||||
interface Controller<F : Any?> {
|
||||
// CHECK:
|
||||
// Mangled name: Controller#yield(1:0){}
|
||||
// Public signature: /Controller.yield|3567278141085588417[0]
|
||||
// Public signature debug description: yield(1:0){}
|
||||
abstract fun yield(t: F): Unit
|
||||
|
||||
}
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: Intf
|
||||
// Public signature: /Intf|null[0]
|
||||
interface Intf {
|
||||
// CHECK:
|
||||
// Mangled name: Intf#foo(){}
|
||||
// Public signature: /Intf.foo|-1041209573719867811[0]
|
||||
// Public signature debug description: foo(){}
|
||||
abstract fun foo(): Unit
|
||||
|
||||
}
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #box(kotlin.Boolean){}
|
||||
// Public signature: /box|3724984511501944637[0]
|
||||
// Public signature debug description: box(kotlin.Boolean){}
|
||||
fun box(b: Boolean): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #expectIntf(Intf){}
|
||||
// Public signature: /expectIntf|-7688726594904654744[0]
|
||||
// Public signature debug description: expectIntf(Intf){}
|
||||
fun expectIntf(intf: Intf): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #generate(kotlin.coroutines.SuspendFunction1<Controller<0:0>,kotlin.Unit>){0§<kotlin.Any?>}
|
||||
// Public signature: /generate|-3399873670227373031[0]
|
||||
// Public signature debug description: generate(kotlin.coroutines.SuspendFunction1<Controller<0:0>,kotlin.Unit>){0§<kotlin.Any?>}
|
||||
fun <S : Any?> generate(g: @ExtensionFunctionType SuspendFunction1<Controller<S>, Unit>): Unit
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: #someUnit(){}
|
||||
// Public signature: /someUnit|-6636253765775113966[0]
|
||||
// Public signature debug description: someUnit(){}
|
||||
fun someUnit(): Unit
|
||||
Generated
+198
@@ -16926,6 +16926,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/nonFunctionalExpectedTypeForLambdaArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notFixedTopLevelLambdaParameter.kt")
|
||||
public void testNotFixedTopLevelLambdaParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/notFixedTopLevelLambdaParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nothingVsParameterBound.kt")
|
||||
public void testNothingVsParameterBound() throws Exception {
|
||||
@@ -17181,18 +17187,60 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/builderInference"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("assignmentUsingIncompletePCLACall.kt")
|
||||
public void testAssignmentUsingIncompletePCLACall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/assignmentUsingIncompletePCLACall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("bothOuterAndProperConstraints.kt")
|
||||
public void testBothOuterAndProperConstraints() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/bothOuterAndProperConstraints.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("builderInferenceAnnotationInLambdaWithTVExpectedType.kt")
|
||||
public void testBuilderInferenceAnnotationInLambdaWithTVExpectedType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/builderInferenceAnnotationInLambdaWithTVExpectedType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("builderPassedAsNamedArgument.kt")
|
||||
public void testBuilderPassedAsNamedArgument() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/builderPassedAsNamedArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callableReferenceAsArgumentForTransaction.kt")
|
||||
public void testCallableReferenceAsArgumentForTransaction() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/callableReferenceAsArgumentForTransaction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callableReferenceInsideInvokeCall.kt")
|
||||
public void testCallableReferenceInsideInvokeCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/callableReferenceInsideInvokeCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("changingResolveIfDontUseBuilderInference.kt")
|
||||
public void testChangingResolveIfDontUseBuilderInference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/changingResolveIfDontUseBuilderInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("considerContractsOfIncompleteCalls.kt")
|
||||
public void testConsiderContractsOfIncompleteCalls() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/considerContractsOfIncompleteCalls.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("elvisWithReturnInLastStatementOfLastLambda.kt")
|
||||
public void testElvisWithReturnInLastStatementOfLastLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/elvisWithReturnInLastStatementOfLastLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("equalityChecksOnIntegerTypes.kt")
|
||||
public void testEqualityChecksOnIntegerTypes() throws Exception {
|
||||
@@ -17211,18 +17259,66 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/errorOnStubReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingDependentVariablesForReceivers.kt")
|
||||
public void testFixingDependentVariablesForReceivers() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingDependentVariablesForReceivers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingDependentVariablesForReceiversInitial.kt")
|
||||
public void testFixingDependentVariablesForReceiversInitial() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingDependentVariablesForReceiversInitial.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingTVForLambadaWithShallowDependencyToOuter.kt")
|
||||
public void testFixingTVForLambadaWithShallowDependencyToOuter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingTVForLambadaWithShallowDependencyToOuter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingTVForLambadaWithShallowDependencyToOuter2.kt")
|
||||
public void testFixingTVForLambadaWithShallowDependencyToOuter2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingTVForLambadaWithShallowDependencyToOuter2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fixingTVForLambadaWithShallowDependencyToOuter3.kt")
|
||||
public void testFixingTVForLambadaWithShallowDependencyToOuter3() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/fixingTVForLambadaWithShallowDependencyToOuter3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("incompleteCallInReturnArgumentsWithProperExpectType.kt")
|
||||
public void testIncompleteCallInReturnArgumentsWithProperExpectType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/incompleteCallInReturnArgumentsWithProperExpectType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("innerTvFixationFromLowerConstraints.kt")
|
||||
public void testInnerTvFixationFromLowerConstraints() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/innerTvFixationFromLowerConstraints.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invalidateKeys.kt")
|
||||
public void testInvalidateKeys() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/invalidateKeys.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invokeExtensionReceiverWithNotFixedVariables.kt")
|
||||
public void testInvokeExtensionReceiverWithNotFixedVariables() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/invokeExtensionReceiverWithNotFixedVariables.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invokeExtensionReceiverWithNotFixedVariablesInitial.kt")
|
||||
public void testInvokeExtensionReceiverWithNotFixedVariablesInitial() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/invokeExtensionReceiverWithNotFixedVariablesInitial.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt47744.kt")
|
||||
public void testKt47744() throws Exception {
|
||||
@@ -17331,6 +17427,36 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/labaledCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaParameterForBareType.kt")
|
||||
public void testLambdaParameterForBareType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/lambdaParameterForBareType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lambdaParameterTypeFixation.kt")
|
||||
public void testLambdaParameterTypeFixation() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/lambdaParameterTypeFixation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("lastLambdaStatementWithFixedVariables.kt")
|
||||
public void testLastLambdaStatementWithFixedVariables() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/lastLambdaStatementWithFixedVariables.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("manyArgsDifferentYields.kt")
|
||||
public void testManyArgsDifferentYields() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/manyArgsDifferentYields.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("memberScopeOfCapturedTypeForPostponedCall.kt")
|
||||
public void testMemberScopeOfCapturedTypeForPostponedCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/memberScopeOfCapturedTypeForPostponedCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multiLambdaRestriction.kt")
|
||||
public void testMultiLambdaRestriction() throws Exception {
|
||||
@@ -17343,12 +17469,42 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/multiLambdaRestrictionDisabled.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedLambdaWithLastLambdaContainingCall.kt")
|
||||
public void testNestedLambdaWithLastLambdaContainingCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/nestedLambdaWithLastLambdaContainingCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedLambdaWithNonLastYieldStatement.kt")
|
||||
public void testNestedLambdaWithNonLastYieldStatement() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/nestedLambdaWithNonLastYieldStatement.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedLambdasWithOverloadResolutionByReturnType.kt")
|
||||
public void testNestedLambdasWithOverloadResolutionByReturnType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/nestedLambdasWithOverloadResolutionByReturnType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("newTvFromLamdaAreNotCountedAsProper.kt")
|
||||
public void testNewTvFromLamdaAreNotCountedAsProper() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/newTvFromLamdaAreNotCountedAsProper.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noBuilderInferenceRestrictionReceiverInconsistency.kt")
|
||||
public void testNoBuilderInferenceRestrictionReceiverInconsistency() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/noBuilderInferenceRestrictionReceiverInconsistency.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overloadResolutionByLambdaReturnTypeInsideBI.kt")
|
||||
public void testOverloadResolutionByLambdaReturnTypeInsideBI() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/overloadResolutionByLambdaReturnTypeInsideBI.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertySubstitution.kt")
|
||||
public void testPropertySubstitution() throws Exception {
|
||||
@@ -17361,12 +17517,24 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/simpleLambdaInCallWithAnotherLambdaWithBuilderInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("singleBranchConditionLastStatementInLambda.kt")
|
||||
public void testSingleBranchConditionLastStatementInLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/singleBranchConditionLastStatementInLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("skipedUnresolvedInBuilderInferenceWithStubReceiverType.kt")
|
||||
public void testSkipedUnresolvedInBuilderInferenceWithStubReceiverType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/skipedUnresolvedInBuilderInferenceWithStubReceiverType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartCastOnBuilderController.kt")
|
||||
public void testSmartCastOnBuilderController() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/smartCastOnBuilderController.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("specialCallsWithCallableReferences.kt")
|
||||
public void testSpecialCallsWithCallableReferences() throws Exception {
|
||||
@@ -17415,6 +17583,24 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/specialCallsWithLambdas.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("substitutedSyntheticPropertyUsage.kt")
|
||||
public void testSubstitutedSyntheticPropertyUsage() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/substitutedSyntheticPropertyUsage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("theSimplestBuilder.kt")
|
||||
public void testTheSimplestBuilder() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/theSimplestBuilder.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenWithPropertyHavingSomePCLACallsWithinInitializer.kt")
|
||||
public void testWhenWithPropertyHavingSomePCLACallsWithinInitializer() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/whenWithPropertyHavingSomePCLACallsWithinInitializer.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withoutAnnotationDisabledFeature.kt")
|
||||
public void testWithoutAnnotationDisabledFeature() throws Exception {
|
||||
@@ -17512,6 +17698,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/stubTypes/renderingStubTypes.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleIntersection.kt")
|
||||
public void testSimpleIntersection() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/builderInference/stubTypes/simpleIntersection.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stubTypeReceiverRestriction.kt")
|
||||
public void testStubTypeReceiverRestriction() throws Exception {
|
||||
@@ -43589,6 +43781,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt38667.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt38667Simplified.kt")
|
||||
public void testKt38667Simplified() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/kt38667Simplified.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt38766.kt")
|
||||
public void testKt38766() throws Exception {
|
||||
|
||||
+6
@@ -2755,6 +2755,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_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")
|
||||
|
||||
+6
@@ -2575,6 +2575,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, 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")
|
||||
|
||||
+6
@@ -2755,6 +2755,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_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")
|
||||
|
||||
+6
@@ -2755,6 +2755,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_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")
|
||||
|
||||
+12
@@ -2890,6 +2890,12 @@ public class ClassicJvmIrTextTestGenerated extends AbstractClassicJvmIrTextTest
|
||||
runTest("compiler/testData/ir/irText/firProblems/MultiList.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noErrorTypeAfterCaptureApproximation.kt")
|
||||
public void testNoErrorTypeAfterCaptureApproximation() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/firProblems/noErrorTypeAfterCaptureApproximation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("OutBox.kt")
|
||||
public void testOutBox() throws Exception {
|
||||
@@ -3240,6 +3246,12 @@ public class ClassicJvmIrTextTestGenerated extends AbstractClassicJvmIrTextTest
|
||||
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 {
|
||||
|
||||
+5
@@ -2403,6 +2403,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("receiverUsesOuterTVButReturnTypeIsProper.kt")
|
||||
public void testReceiverUsesOuterTVButReturnTypeIsProper() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/builderInference/receiverUsesOuterTVButReturnTypeIsProper.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/builderInference/issues")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
+10
@@ -2194,6 +2194,11 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase {
|
||||
runTest("compiler/testData/ir/irText/firProblems/LocalSuspendFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noErrorTypeAfterCaptureApproximation.kt")
|
||||
public void testNoErrorTypeAfterCaptureApproximation() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/firProblems/noErrorTypeAfterCaptureApproximation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("readWriteProperty.kt")
|
||||
public void testReadWriteProperty() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/firProblems/readWriteProperty.kt");
|
||||
@@ -2568,6 +2573,11 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase {
|
||||
runTest("compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noSyntheticTypeParameterLeftAfterPCLA.kt")
|
||||
public void testNoSyntheticTypeParameterLeftAfterPCLA() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/regressions/noSyntheticTypeParameterLeftAfterPCLA.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeAliasCtorForGenericClass.kt")
|
||||
public void testTypeAliasCtorForGenericClass() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.kt");
|
||||
|
||||
+6
-6
@@ -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 {
|
||||
|
||||
Generated
+6
-6
@@ -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 {
|
||||
|
||||
Generated
+12
@@ -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 {
|
||||
|
||||
+12
@@ -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 {
|
||||
|
||||
+12
@@ -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 {
|
||||
|
||||
+6
-6
@@ -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 {
|
||||
|
||||
+6
-6
@@ -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 {
|
||||
|
||||
+6
-6
@@ -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 {
|
||||
|
||||
+6
-6
@@ -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 {
|
||||
|
||||
+6
-6
@@ -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 {
|
||||
|
||||
+6
-6
@@ -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 {
|
||||
|
||||
+12
@@ -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 {
|
||||
|
||||
+12
@@ -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 {
|
||||
|
||||
+12
@@ -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 {
|
||||
|
||||
Generated
+6
-6
@@ -1849,6 +1849,12 @@ public class FirWasmCodegenBoxTestGenerated extends AbstractFirWasmCodegenBoxTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, 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")
|
||||
@@ -2062,12 +2068,6 @@ public class FirWasmCodegenBoxTestGenerated extends AbstractFirWasmCodegenBoxTes
|
||||
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 {
|
||||
|
||||
Generated
+6
-6
@@ -1849,6 +1849,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builderInference"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, 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")
|
||||
@@ -2062,12 +2068,6 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user