[FIR] Fix PACKAGE_CANNOT_BE_IMPORTED diagnostic
Don't report it when there is a function/property with the same name as package
This commit is contained in:
committed by
TeamCityServer
parent
ec705d88a5
commit
972cd9e9e7
+6
@@ -11579,6 +11579,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
runTest("compiler/testData/diagnostics/tests/imports/importFunctionWithAllUnderImportAfterNamedImport.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ImportFunctionWithPackageName.kt")
|
||||
public void testImportFunctionWithPackageName() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/imports/ImportFunctionWithPackageName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ImportHidingDefinitionInTheSameFile.kt")
|
||||
public void testImportHidingDefinitionInTheSameFile() throws Exception {
|
||||
|
||||
+6
@@ -11579,6 +11579,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
runTest("compiler/testData/diagnostics/tests/imports/importFunctionWithAllUnderImportAfterNamedImport.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ImportFunctionWithPackageName.kt")
|
||||
public void testImportFunctionWithPackageName() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/imports/ImportFunctionWithPackageName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ImportHidingDefinitionInTheSameFile.kt")
|
||||
public void testImportHidingDefinitionInTheSameFile() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user