1
0

Fix omitted argument

This commit is contained in:
otya128
2016-12-24 13:24:36 +09:00
parent 757bf6cc48
commit 4abf299063
3 changed files with 13 additions and 8 deletions

View File

@@ -486,7 +486,7 @@ class Compiler
}
void compileExpression(Expression exp, Scope sc)
{
if(!exp)
if(!exp || exp.type == NodeType.VoidExpression)
{
genCodeImm(Value(ValueType.Void));
return;