diff options
-rw-r--r-- | compiler/ccgcalls.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/ccgcalls.nim b/compiler/ccgcalls.nim index 879b57423..bd1a4101a 100644 --- a/compiler/ccgcalls.nim +++ b/compiler/ccgcalls.nim @@ -262,7 +262,9 @@ proc genOtherArg(p: BProc; ri: PNode; i: int; typ: PType): Rope = else: if tfVarargs notin typ.flags: localError(ri.info, "wrong argument count") - result = genArgNoParam(p, ri.sons[i]) + result = nil + else: + result = genArgNoParam(p, ri.sons[i]) discard """ Dot call syntax in C++ |