ES6 Support Groundwork + Fixes (OLD ONE DON'T LOOK AT ME!!!) #22
@ -27,7 +27,7 @@ public class FunctionScope extends Scope {
|
||||
|
||||
@Override public Variable define(Variable var, Location loc) {
|
||||
checkNotEnded();
|
||||
if (locals.has(var.name)) throw alreadyDefinedErr(loc, var.name);
|
||||
if (variables.has(var.name)) throw alreadyDefinedErr(loc, var.name);
|
||||
|
||||
if (passtrough) {
|
||||
blacklistNames.add(var.name);
|
||||
|
Loading…
Reference in New Issue
Block a user