This commit is contained in:
Araq 2014-03-23 17:48:10 +01:00
commit 5920edf6e4
6 changed files with 102 additions and 33 deletions

View file

@ -0,0 +1,29 @@
discard """
msg: '''2
3
4:2
'''
"""
# bug #404
import macros, tables
var ZOOT{.compileTime.} = initTable[int, int](2)
var iii {.compiletime.} = 1
macro x:stmt=
zoot[iii] = iii*2
inc iii
echo iii
x
x
macro tupleUnpack: stmt =
var (y,z) = (4, 2)
echo y, ":", z
tupleUnpack