Added check against constant declarations
This commit is contained in:
parent
6fe9de3af5
commit
d7ce89ca9a
1 changed files with 3 additions and 0 deletions
|
@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue