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:
orbitcowboy 2015-12-17 16:04:59 +01:00
commit 4a3c61f031
1 changed files with 2 additions and 0 deletions

View File

@ -2969,6 +2969,8 @@ const Token *Scope::checkVariable(const Token *tok, AccessControl varaccess, con
break;
}
}
if (vType)
break;
parent = parent->nestedIn;
}
}