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.
1 parent a90f0a3 commit 73acd10Copy full SHA for 73acd10
RetailCoder.VBE/Inspections/ObjectVariableNotSetInspection.cs
@@ -90,9 +90,9 @@ public override IEnumerable<InspectionResultBase> GetInspectionResults()
90
State.AllUserDeclarations.Where(item =>
91
!item.IsSelfAssigned &&
92
!ValueTypes.Contains(item.AsTypeName) &&
93
- item.AsTypeDeclaration != null &&
+ (item.AsTypeDeclaration == null ||
94
item.AsTypeDeclaration.DeclarationType != DeclarationType.Enumeration &&
95
- item.AsTypeDeclaration.DeclarationType != DeclarationType.UserDefinedType &&
+ item.AsTypeDeclaration.DeclarationType != DeclarationType.UserDefinedType) &&
96
(item.DeclarationType == DeclarationType.Variable ||
97
item.DeclarationType == DeclarationType.Parameter));
98
0 commit comments