diff options
author | transfuturist <timothy.schmid@gmail.com> | 2015-05-17 15:05:26 -0700 |
---|---|---|
committer | transfuturist <timothy.schmid@gmail.com> | 2015-05-17 15:05:26 -0700 |
commit | bc2aaea853d3bd1ad7641bf32335e3725f03afed (patch) | |
tree | 42846a66daefcb5ca87813af5cf6aedb29fb93c1 /lib/core/macros.nim | |
parent | 3d80fcb8c6ff1e03922f517681efad65d79563fb (diff) | |
download | Nim-bc2aaea853d3bd1ad7641bf32335e3725f03afed.tar.gz |
Change check for NimNode items to node kind
Diffstat (limited to 'lib/core/macros.nim')
-rw-r--r-- | lib/core/macros.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim index 41998250e..0bfdffc5d 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -709,7 +709,7 @@ proc ident*(name: string): NimNode {.compileTime,inline.} = newIdentNode(name) ## Create a new ident node from a string iterator items*(n: NimNode): NimNode {.inline.} = - if n[0] != nil: + if n.kind in {nnkType, nnkMetaNode .. nnkReturnToken}: for i in 0 .. high(n): yield n[i] |