Skip to content

Commit 158eaa9

Browse files
committed
fixed parameter resolution in functions and property getters
1 parent 9fb8075 commit 158eaa9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Rubberduck.Parsing/Symbols/IdentifierReferenceResolver.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,8 +730,9 @@ private Declaration FindLocalScopeDeclaration(string identifierName, Declaration
730730
return null;
731731
}
732732

733-
if (localScope.DeclarationType == DeclarationType.Function ||
734-
localScope.DeclarationType == DeclarationType.PropertyGet)
733+
if (localScope.IdentifierName == identifierName
734+
&& (localScope.DeclarationType == DeclarationType.Function
735+
|| localScope.DeclarationType == DeclarationType.PropertyGet))
735736
{
736737
return FindFunctionOrPropertyGetter(identifierName, localScope);
737738
}

0 commit comments

Comments
 (0)