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 a904f35 + 6473006 commit b364283Copy full SHA for b364283
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