summary refs log tree commit diff stats
path: root/rod/sigmatch.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-01-09 19:02:06 +0100
committerAraq <rumpf_a@web.de>2011-01-09 19:02:06 +0100
commitdbc5048a9a153747675ad6c9e98119b479eb0a30 (patch)
treede1b555a0a2f55aaec3f0dfe9afa5e8e26b1c560 /rod/sigmatch.nim
parentf31eab8536a5015e1754e10f51cf39ad50777401 (diff)
downloadNim-dbc5048a9a153747675ad6c9e98119b479eb0a30.tar.gz
c2nim compiles again [#9 state:resolved]; better error message for named parameters
Diffstat (limited to 'rod/sigmatch.nim')
-rwxr-xr-xrod/sigmatch.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/rod/sigmatch.nim b/rod/sigmatch.nim
index 6a91550e6..5dc9de7b0 100755
--- a/rod/sigmatch.nim
+++ b/rod/sigmatch.nim
@@ -95,6 +95,9 @@ proc getNotFoundError(c: PContext, n: PNode): string =
   result = msgKindToString(errTypeMismatch)
   for i in countup(1, sonsLen(n) - 1): 
     #debug(n.sons[i].typ);
+    if n.sons[i].kind == nkExprEqExpr: 
+      add(result, renderTree(n.sons[i].sons[0]))
+      add(result, ": ")
     add(result, typeToString(n.sons[i].typ))
     if i != sonsLen(n) - 1: add(result, ", ")
   add(result, ')')