From 6d675814091b20312cbe51b69261453e04e27214 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 4 Apr 2016 10:19:20 +0200 Subject: fixes #3859 --- tests/vm/tmitems.nim | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests/vm') diff --git a/tests/vm/tmitems.nim b/tests/vm/tmitems.nim index 18f5bfa06..4ee225eed 100644 --- a/tests/vm/tmitems.nim +++ b/tests/vm/tmitems.nim @@ -1,5 +1,8 @@ discard """ msg: '''13''' + output: '''3 +3 +3''' """ # bug #3731 var list {.compileTime.} = newSeq[int]() @@ -13,3 +16,16 @@ macro calc*(): stmt {.immediate.} = echo c calc() + +# bug #3859 +import macros +macro m: stmt = + var s = newseq[NimNode](3) + # var s: array[3,NimNode] # not working either + for i in 0..