mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #75659 from xymus/shadow-dont-warn-with-alias-workaround
ModuleInterface: Don't warn on name conflict when the alias workaround is enabled
This commit is contained in:
@@ -184,7 +184,8 @@ static void
|
||||
diagnoseDeclShadowsModule(ModuleInterfaceOptions const &Opts,
|
||||
TypeDecl *shadowingDecl, ModuleDecl *shadowedModule,
|
||||
ModuleDecl *brokenModule) {
|
||||
if (Opts.PreserveTypesAsWritten || shadowingDecl == shadowedModule)
|
||||
if (Opts.PreserveTypesAsWritten || Opts.AliasModuleNames ||
|
||||
shadowingDecl == shadowedModule)
|
||||
return;
|
||||
|
||||
shadowingDecl->diagnose(
|
||||
|
||||
Reference in New Issue
Block a user