diff --git a/ssc/ast/nodes.variables.cs b/ssc/ast/nodes.variables.cs index d9cc8bb..4d3cbd9 100644 --- a/ssc/ast/nodes.variables.cs +++ b/ssc/ast/nodes.variables.cs @@ -34,6 +34,9 @@ public override void Compile(sunCompiler compiler) { var symbol = compiler.Context.DeclareVariable(this); symbol.Modifiers = Modifiers; + if ((Modifiers & sunSymbolModifiers.Constant) != 0) { + throw new sunInvalidModifierException(this[0]); + } } }