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.
2 parents 4ab586e + b364283 commit 55324bdCopy full SHA for 55324bd
RetailCoder.VBE/Inspections/SelfAssignedDeclarationInspection.cs
@@ -39,6 +39,7 @@ public override IEnumerable<InspectionResultBase> GetInspectionResults()
39
&& declaration.IsTypeSpecified
40
&& !ValueTypes.Contains(declaration.AsTypeName)
41
&& declaration.DeclarationType == DeclarationType.Variable
42
+ && declaration.AsTypeDeclaration.DeclarationType != DeclarationType.UserDefinedType
43
&& declaration.ParentScopeDeclaration != null
44
&& declaration.ParentScopeDeclaration.DeclarationType.HasFlag(DeclarationType.Member))
45
.Select(issue => new SelfAssignedDeclarationInspectionResult(this, issue));
0 commit comments