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:
committed by
Space Team
parent
5d7ac18778
commit
60f09f6512
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user