KT-65152 [AA] Add extra test for package resolution

Make sure that, when ambiguous, both the package
and the callable/class/property are resolved from
KDoc reference.

Do a slight refactoring of `KDocReferenceResolver`

This behavior is also true for K1
This commit is contained in:
Roman Golyshev
2024-01-22 15:59:40 +01:00
committed by Space Team
parent f402daba98
commit c0d54f9bbf
8 changed files with 63 additions and 1 deletions
@@ -1623,6 +1623,12 @@ public class Fe10IdeNormalAnalysisSourceModuleReferenceResolveTestGenerated exte
public void testLongPackage() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/packages/longPackage.kt");
}
@Test
@TestMetadata("packageVsTopLevelDeclarations.kt")
public void testPackageVsTopLevelDeclarations() throws Exception {
runTest("analysis/analysis-api/testData/referenceResolve/kDoc/packages/packageVsTopLevelDeclarations.kt");
}
}
@Nested