We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9634a92 commit 912cea6Copy full SHA for 912cea6
Rubberduck.Inspections/Concrete/ShadowedDeclarationInspection.cs
@@ -125,6 +125,11 @@ private static bool DeclarationInReferencedProjectCanBeShadowed(Declaration orig
125
return false;
126
}
127
128
+ if ((originalDeclaration.ParentDeclaration as ClassModuleDeclaration)?.IsGlobalClassModule == false)
129
+ {
130
+ return false;
131
+ }
132
+
133
var originalDeclarationComponentType = originalDeclaration.QualifiedName.QualifiedModuleName.ComponentType;
134
var userDeclarationComponentType = userDeclaration.QualifiedName.QualifiedModuleName.ComponentType;
135
0 commit comments