summary refs log tree commit diff stats
path: root/tests/run/tstringinterp.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-03-21 23:11:16 +0100
committerAraq <rumpf_a@web.de>2012-03-21 23:11:16 +0100
commit4f22326b2493642c1edb39ab262f1f7d0e81461c (patch)
treecf7ef0052339faf70132673be800e77033dd5a8a /tests/run/tstringinterp.nim
parent03ba0f3e251a08587a12a340949bb2de49178af9 (diff)
parent70f5236d48855cd4ef55f4d12e07183316a1f886 (diff)
downloadNim-4f22326b2493642c1edb39ab262f1f7d0e81461c.tar.gz
Merge branch 'master' of github.com:Araq/Nimrod
Diffstat (limited to 'tests/run/tstringinterp.nim')
-rw-r--r--tests/run/tstringinterp.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/run/tstringinterp.nim b/tests/run/tstringinterp.nim
index e1a55c94b..423e7bb61 100644
--- a/tests/run/tstringinterp.nim
+++ b/tests/run/tstringinterp.nim
@@ -26,7 +26,7 @@ macro formatStyleInterpolation(e: expr): expr =
   proc addString(s: string) =
     formatString.add(s)
 
-  proc addExpr(e: expr) =
+  proc addExpr(e: PNimrodNode) =
     arrayNode.add(e)
     formatString.add("$" & $(idx))
     inc idx
@@ -44,9 +44,9 @@ macro concatStyleInterpolation(e: expr): expr =
   var args: seq[PNimrodNode]
   newSeq(args, 0)
 
-  proc addString(s: string)  = args.add(newStrLitNode(s))
-  proc addExpr(e: expr)      = args.add(e)
-  proc addDollar()           = args.add(newStrLitNode"$")
+  proc addString(s: string)    = args.add(newStrLitNode(s))
+  proc addExpr(e: PNimrodNode) = args.add(e)
+  proc addDollar()             = args.add(newStrLitNode"$")
 
   ProcessInterpolations(e)