Skip to content

Commit 55324bd

Browse files
authored
Merge branch 'next' into parserCancellationBug
2 parents 4ab586e + b364283 commit 55324bd

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)