Skip to content

Commit 6cc12c8

Browse files
committed
fixes #6198
1 parent 2017e5a commit 6cc12c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Rubberduck.CodeAnalysis/Inspections/Concrete/UnassignedVariableUsageInspection.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using Rubberduck.Parsing.VBA.DeclarationCaching;
99
using Rubberduck.Resources.Inspections;
1010
using Rubberduck.VBEditor;
11+
using System;
1112
using System.Collections.Generic;
1213
using System.Diagnostics.CodeAnalysis;
1314
using System.Globalization;
@@ -69,6 +70,7 @@ protected override IEnumerable<Declaration> ObjectionableDeclarations(Declaratio
6970
&& !declaration.IsSelfAssigned
7071
&& finder.MatchName(declaration.AsTypeName)
7172
.All(d => d.DeclarationType != DeclarationType.UserDefinedType)
73+
&& !declaration.IdentifierName.StartsWith("out", StringComparison.InvariantCultureIgnoreCase)
7274
&& !declaration.References
7375
.Any(reference => reference.IsAssignment)
7476
&& !declaration.References

0 commit comments

Comments
 (0)