Fix name scope resolution

This commit is contained in:
James Roseborough
2010-07-06 05:25:54 +00:00
parent 700d3878a0
commit dceadf2f82

View File

@@ -42,7 +42,7 @@ public class NameScope {
validateIsNotKeyword(name);
for ( NameScope n = this; n!=null; n=n.outerScope )
if ( n.namedVariables.containsKey(name) )
return namedVariables.get(name);
return n.namedVariables.get(name);
NamedVariable value = new NamedVariable(name);
this.namedVariables.put(name, value);
return value;