[Analysis API] Add call resolution tests for KTIJ-23373

- The Java functions aren't recognized as candidates during the test
  (`FULL_JDK` isn't helping), so I've replicated the tests with local
  extension functions and confirmed that they uncover the same
  exception.
This commit is contained in:
Marco Pennekamp
2022-11-14 13:50:45 +01:00
parent 60dbe73f60
commit 93f560eb4d
9 changed files with 2393 additions and 0 deletions
@@ -85,6 +85,18 @@ public class FirStandaloneNormalAnalysisSourceModuleResolveCandidatesTestGenerat
runTest("analysis/analysis-api/testData/components/callResolver/resolveCandidates/multipleCandidates/delegatedConstructor.kt");
}
@Test
@TestMetadata("forEach.kt")
public void testForEach() throws Exception {
runTest("analysis/analysis-api/testData/components/callResolver/resolveCandidates/multipleCandidates/forEach.kt");
}
@Test
@TestMetadata("groupBy.kt")
public void testGroupBy() throws Exception {
runTest("analysis/analysis-api/testData/components/callResolver/resolveCandidates/multipleCandidates/groupBy.kt");
}
@Test
@TestMetadata("implicitInvoke.kt")
public void testImplicitInvoke() throws Exception {