You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an import adds in scope an object with the same name as a class defined in the package, the imported SomeClass' is permanently hidden by ...` warning makes it look like the import statement is not useful. When in fact it might be used to access the elements of the object.
The warning appears with the following files, and the code doesn't compile anymore if the import is removed.
When an import adds in scope an object with the same name as a class defined in the package, the
imported
SomeClass' is permanently hidden by ...` warning makes it look like the import statement is not useful. When in fact it might be used to access the elements of the object.The warning appears with the following files, and the code doesn't compile anymore if the import is removed.
To be fair, the warning states that the class is hidden, not the object.
The only way to have code that compiles without warning is to use an import rename.
The text was updated successfully, but these errors were encountered: