Skip to content

Commit 6473006

Browse files
committed
Close #1963
1 parent a904f35 commit 6473006

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

RetailCoder.VBE/Inspections/SelfAssignedDeclarationInspection.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public override IEnumerable<InspectionResultBase> GetInspectionResults()
3939
&& declaration.IsTypeSpecified
4040
&& !ValueTypes.Contains(declaration.AsTypeName)
4141
&& declaration.DeclarationType == DeclarationType.Variable
42+
&& declaration.AsTypeDeclaration.DeclarationType != DeclarationType.UserDefinedType
4243
&& declaration.ParentScopeDeclaration != null
4344
&& declaration.ParentScopeDeclaration.DeclarationType.HasFlag(DeclarationType.Member))
4445
.Select(issue => new SelfAssignedDeclarationInspectionResult(this, issue));

0 commit comments

Comments
 (0)