diff options
Diffstat (limited to 'compiler.d')
| -rw-r--r-- | compiler.d | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -615,6 +615,12 @@ class Compiler { } void compileList(Form[] args) { + 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); foreach (Form arg ; args) { resolve(arg, ValueType.ANY); // resolve everything onto the stack |
