K2: add test for KT-56520, case (7), qualifier receivers (1)

Again, both frontends here ignored classifiers from
explicit star imported scope (some.HashMap, java.util.HashMap)
because of their ambiguity. In case of K2, it works so due to logic
in BodyResolveComponents.resolveRootPartOfQualifier.
This function is called to resolve qualifier without receiver
This commit is contained in:
Mikhail Glukhikh
2023-10-27 15:34:22 +02:00
committed by Space Team
parent 22d083a7a9
commit 168717b811
7 changed files with 127 additions and 0 deletions
@@ -44779,6 +44779,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/testsWithStdLib/resolve/ambiguousTypeReferences/constructorCaseSpace.kt");
}
@Test
@TestMetadata("qualifierForStaticCase.kt")
public void testQualifierForStaticCase() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/resolve/ambiguousTypeReferences/qualifierForStaticCase.kt");
}
@Test
@TestMetadata("typeCase.kt")
public void testTypeCase() throws Exception {
@@ -44779,6 +44779,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/testsWithStdLib/resolve/ambiguousTypeReferences/constructorCaseSpace.kt");
}
@Test
@TestMetadata("qualifierForStaticCase.kt")
public void testQualifierForStaticCase() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/resolve/ambiguousTypeReferences/qualifierForStaticCase.kt");
}
@Test
@TestMetadata("typeCase.kt")
public void testTypeCase() throws Exception {