mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #35904 from beccadax/go-back-to-the-shadow
Warn about module name shadowing in interfaces
This commit is contained in:
@@ -2051,6 +2051,8 @@ bool SourceFile::isImportedImplementationOnly(const ModuleDecl *module) const {
|
||||
}
|
||||
|
||||
bool ModuleDecl::isImportedImplementationOnly(const ModuleDecl *module) const {
|
||||
if (module == this) return false;
|
||||
|
||||
auto &imports = getASTContext().getImportCache();
|
||||
|
||||
// Look through non-implementation-only imports to see if module is imported
|
||||
|
||||
Reference in New Issue
Block a user