bugfix: tseqtuple

This commit is contained in:
Andreas Rumpf 2010-03-10 00:40:34 +01:00
commit 2e280eafa8
4 changed files with 214 additions and 40 deletions

22
tests/accept/run/tseqtuple.nim Executable file
View file

@ -0,0 +1,22 @@
type
TMsg = tuple[
file: string,
line: int,
msg: string,
err: bool]
var s: seq[TMsg] = @[]
s.add(("fA", 13, "msg1", false))
s.add(("fB", 14, "msg2", true))
s.add(("fC", 15, "msg3", false))
for file, line, msg, err in items(s):
stdout.write(file)
stdout.write($line)
stdout.write(msg)
stdout.write($err)
#OUT fA13msg1falsefB14msg2truefC15msg3false