Merge pull request #731 from Dmitry-Me/dontProceedToOuterScope
Don't proceed to outer scope once there's a match in this scope
This commit is contained in:
commit
4a3c61f031
|
@ -2969,6 +2969,8 @@ const Token *Scope::checkVariable(const Token *tok, AccessControl varaccess, con
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (vType)
|
||||
break;
|
||||
parent = parent->nestedIn;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue