failing test case preventing the use of --gc:v2: tsymchoicefield

This commit is contained in:
Zahary Karadjov 2014-03-24 12:17:22 +02:00
commit e8c50640d7
3 changed files with 22 additions and 7 deletions

View file

@ -13,6 +13,8 @@ discard """
3
aa
bb
11
22
aa
bb
24'''
@ -45,9 +47,11 @@ type
const data: TData = (@["aa", "bb"], @[11, 22])
static:
var m = data
for x in m.letters:
echo x
var m1 = data
for x in m1.letters: echo x
var m2: TData = data
for x in m2.numbers: echo x
macro ff(d: static[TData]): stmt =
for x in d.letters:
@ -55,7 +59,6 @@ macro ff(d: static[TData]): stmt =
ff(data)
# bug #1010
proc `*==`(x: var int, y: int) {.inline, noSideEffect.} =