Skip to content

Commit 4a3c61f

Browse files
committed
Merge pull request #731 from Dmitry-Me/dontProceedToOuterScope
Don't proceed to outer scope once there's a match in this scope
2 parents 8f22e49 + ecc2e00 commit 4a3c61f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/symboldatabase.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2969,6 +2969,8 @@ const Token *Scope::checkVariable(const Token *tok, AccessControl varaccess, con
29692969
break;
29702970
}
29712971
}
2972+
if (vType)
2973+
break;
29722974
parent = parent->nestedIn;
29732975
}
29742976
}

0 commit comments

Comments
 (0)