From 7fca910e8e91f88cef20c7a16ee10db4342324f2 Mon Sep 17 00:00:00 2001 From: arookas Date: Mon, 1 Feb 2016 05:34:22 -0500 Subject: [PATCH] Fixed: variables were always declared global --- ssc/context.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssc/context.cs b/ssc/context.cs index 0b81966..06a5018 100644 --- a/ssc/context.cs +++ b/ssc/context.cs @@ -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);