diff options
Diffstat (limited to 'compiler.d')
| -rw-r--r-- | compiler.d | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -566,7 +566,6 @@ class Compiler { if (args.length == 0) { this.func.chunk.writeOp(OpCode.OP_LIST, -1); this.func.chunk.writeOp(to!ubyte(0), -1); - //this.advance(); return; } int length = to!int(args.length); @@ -601,7 +600,7 @@ class Compiler { // TODO if this is used for both string/list, should be able to typecheck second arg here ValueType vt2 = this.resolve(args[1], ValueType.ANY); - this.func.chunk.writeOp(OpCode.OP_CONCAT, args[0].line); + this.func.chunk.writeOp(OpCode.OP_APPEND, args[0].line); } void compileIn(Form[] args) { |
