Nim/tests/ccgbugs/t6279.nim
2017-12-14 14:02:13 +01:00

9 lines
231 B
Nim

discard """
cmd: "nim c -r -d:fulldebug -d:smokeCycles --gc:refc $file"
output: '''@["a"]'''
"""
# bug #6279
var foo = newSeq[tuple[a: seq[string], b: seq[string]]]()
foo.add((@["a"], @["b"]))
echo foo[0].a # Crashes on this line