K1/K2: add a test fixing behavior of overloadResolutionByLambda/PCLA combo

This commit is contained in:
Mikhail Glukhikh
2024-02-09 10:20:57 +01:00
committed by Space Team
parent 8217aa9633
commit e532220305
8 changed files with 65 additions and 0 deletions
@@ -3838,6 +3838,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/builderInference"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
}
@Test
@TestMetadata("overloadResolutionByLambdaReturnType.kt")
public void testOverloadResolutionByLambdaReturnType() throws Exception {
runTest("compiler/testData/diagnostics/tests/builderInference/overloadResolutionByLambdaReturnType.kt");
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/builderInference/issues")
@TestDataPath("$PROJECT_ROOT")
@@ -3838,6 +3838,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/builderInference"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
}
@Test
@TestMetadata("overloadResolutionByLambdaReturnType.kt")
public void testOverloadResolutionByLambdaReturnType() throws Exception {
runTest("compiler/testData/diagnostics/tests/builderInference/overloadResolutionByLambdaReturnType.kt");
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/builderInference/issues")
@TestDataPath("$PROJECT_ROOT")