summary refs log tree commit diff stats
path: root/tests/macros/tmacros1.nim
diff options
context:
space:
mode:
authordef <dennis@felsin9.de>2015-03-17 17:50:32 +0100
committerdef <dennis@felsin9.de>2015-03-17 17:50:32 +0100
commitfd4e6299057b0ce59a89553e7c32a9ea62da14db (patch)
tree45bb61ec52b415ffd07caae7c5b7fc10a0d99577 /tests/macros/tmacros1.nim
parent8e651fa0d456786df15445e10e14b9d4e96c21ff (diff)
downloadNim-fd4e6299057b0ce59a89553e7c32a9ea62da14db.tar.gz
Rename PNimrodNode to NimNode
Diffstat (limited to 'tests/macros/tmacros1.nim')
-rw-r--r--tests/macros/tmacros1.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/macros/tmacros1.nim b/tests/macros/tmacros1.nim
index 3c814ad6d..1a1073a44 100644
--- a/tests/macros/tmacros1.nim
+++ b/tests/macros/tmacros1.nim
@@ -15,10 +15,10 @@ macro outterMacro*(n: stmt): stmt {.immediate.} =
   expectKind(n, TNimrodNodeKind.nnkCall)
   if n.len != 3 or n[1].kind != TNimrodNodeKind.nnkIdent:
     error("Macro " & callNode.repr &
-      " requires the ident passed as parameter (eg: " & callNode.repr & 
+      " requires the ident passed as parameter (eg: " & callNode.repr &
       "(the_name_you_want)): statements.")
   result = newNimNode(TNimrodNodeKind.nnkStmtList)
-  var ass : PNimrodNode = newNimNode(nnkAsgn)
+  var ass : NimNode = newNimNode(nnkAsgn)
   ass.add(newIdentNode(n[1].ident))
   ass.add(newStrLitNode(innerProc(4)))
   result.add(ass)