Don't proceed to outer scope once there's a match in this scope

This commit is contained in:
Dmitry-Me 2015-12-17 17:31:22 +03:00
parent bc6ae499dc
commit ecc2e00a38
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;
}
}