Fix assign

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

No files matched your search

+9
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)