Fixed: variables were always declared global
This commit is contained in:
parent
b3a347936e
commit
7fca910e8e
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ namespace arookas {
|
|||
return DeclareVariable(node.Name, node.Modifiers);
|
||||
}
|
||||
sunVariableSymbol DeclareVariable(sunIdentifier node, sunSymbolModifiers modifiers) {
|
||||
var name = MangleSymbolName(node.Value, false, false);
|
||||
var name = MangleSymbolName(node.Value, false, (modifiers & sunSymbolModifiers.Local) != 0);
|
||||
#if SSC_PACK_VARS
|
||||
if (Scopes.Top.GetIsDeclared(name)) {
|
||||
throw new sunRedeclaredVariableException(node);
|
||||
|
|
Loading…
Reference in a new issue