K2: Adjust renaming on import for current package with K1 rules

Namely, once a file in a package `foo` has import `foo.bar as baz`,
auto imported `bar` from the package name becomes inivisible in the file

^KT-54854 Fixed
This commit is contained in:
Denis.Zharkov
2023-06-22 18:37:57 +02:00
committed by Space Team
parent 5d7ac18778
commit 60f09f6512
11 changed files with 101 additions and 10 deletions
@@ -14202,6 +14202,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/imports/ImportFromCurrentWithDifferentName.kt");
}
@Test
@TestMetadata("ImportFromCurrentWithDifferentNameComplex.kt")
public void testImportFromCurrentWithDifferentNameComplex() throws Exception {
runTest("compiler/testData/diagnostics/tests/imports/ImportFromCurrentWithDifferentNameComplex.kt");
}
@Test
@TestMetadata("ImportFromObject.kt")
public void testImportFromObject() throws Exception {
@@ -14202,6 +14202,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/imports/ImportFromCurrentWithDifferentName.kt");
}
@Test
@TestMetadata("ImportFromCurrentWithDifferentNameComplex.kt")
public void testImportFromCurrentWithDifferentNameComplex() throws Exception {
runTest("compiler/testData/diagnostics/tests/imports/ImportFromCurrentWithDifferentNameComplex.kt");
}
@Test
@TestMetadata("ImportFromObject.kt")
public void testImportFromObject() throws Exception {