Mask existing "local" bindings when registering new binding

Fixes #5491.
This commit is contained in:
Moti Zilberman 2017-03-19 10:06:53 +00:00 committed by Justin Ridgewell
parent d8b4073536
commit c3e8715010

View File

@ -532,6 +532,8 @@ export default class Scope {
// in `warnOnFlowBinding`.
if (local && local.path.isFlow()) local = null;
if (local && local.kind === "local") local = null;
parent.references[name] = true;
this.bindings[name] = new Binding({