summary refs log tree commit diff stats
path: root/compiler/sigmatch.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-06-03 23:06:59 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-06-03 23:07:07 +0200
commit1d44fee399868ebc6c5e412ee23c7fd1e4c37351 (patch)
treeb48385d634fd8bfb1035eed73bde89fffa7e1ff0 /compiler/sigmatch.nim
parent4e72e71284bbdcf18382eba027368acf365ca82f (diff)
downloadNim-1d44fee399868ebc6c5e412ee23c7fd1e4c37351.tar.gz
hotfix: don't crash for wrong template calls
Diffstat (limited to 'compiler/sigmatch.nim')
-rw-r--r--compiler/sigmatch.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim
index e72db45e7..df27e3c1d 100644
--- a/compiler/sigmatch.nim
+++ b/compiler/sigmatch.nim
@@ -256,6 +256,7 @@ proc describeArgs*(c: PContext, n: PNode, startIdx = 1;
       add(result, renderTree(n.sons[i].sons[0]))
       add(result, ": ")
       if arg.typ.isNil and arg.kind notin {nkStmtList, nkDo}:
+        # XXX we really need to 'tryExpr' here!
         arg = c.semOperand(c, n.sons[i].sons[1])
         n.sons[i].typ = arg.typ
         n.sons[i].sons[1] = arg