Skip to content

Commit

Permalink
fixes array assignments for declarations (not just function return va…
Browse files Browse the repository at this point in the history
…lues)

auxiliary partial fix for rubberduck-vba#2265
  • Loading branch information
ThunderFrame committed Oct 1, 2016
1 parent 54fb3cf commit 0b54772
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public override IEnumerable<InspectionResultBase> GetInspectionResults()
var interestingDeclarations =
State.AllUserDeclarations.Where(item =>
!item.IsSelfAssigned &&
!item.IsArray &&
!ValueTypes.Contains(item.AsTypeName) &&
(item.AsTypeDeclaration == null ||
item.AsTypeDeclaration.DeclarationType != DeclarationType.Enumeration &&
Expand Down

0 comments on commit 0b54772

Please sign in to comment.