Don't proceed to outer scope once there's a match in this scope
This commit is contained in:
parent
bc6ae499dc
commit
ecc2e00a38
|
@ -2969,6 +2969,8 @@ const Token *Scope::checkVariable(const Token *tok, AccessControl varaccess, con
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (vType)
|
||||||
|
break;
|
||||||
parent = parent->nestedIn;
|
parent = parent->nestedIn;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue