1
0

Fix assign

This commit is contained in:
otya128
2016-12-08 21:38:22 +09:00
parent cc05576862
commit 972b075b0f
3 changed files with 49 additions and 15 deletions

View File

@@ -928,6 +928,15 @@ class Compiler
genCodePopVar(assign.name, s);
}
break;
case NodeType.AssignRef:
{
auto assign = cast(AssignRef)i;
//right->left
compileExpression(assign.expression, s);
compilePushReference(assign.left, s);
genCode(new PopRererence());
}
break;
case NodeType.Label:
{
if (this.isDirectMode)