1
0

Fix VAR(NAME$)

This commit is contained in:
otya128
2016-12-16 23:40:54 +09:00
parent 00efdec87d
commit 84a82d1336
2 changed files with 43 additions and 2 deletions

View File

@@ -686,9 +686,15 @@ class Compiler
}
}
goto default;
case NodeType.VarRef:
{
auto varref = cast(VarRef)expr;
compileExpression(varref.expression, sc);
genCode(new PopVarExpression(sc));
}
break;
default:
stderr.writeln("ERROR");
break;
throw new SyntaxError();
}
}