Nim/tests/types/tassignemptytuple.nim
2016-07-11 19:12:05 +10:00

11 lines
200 B
Nim

discard """
file: "tassignemptytuple.nim"
line: 11
errormsg: "cannot infer the type of the tuple"
"""
var
foo: seq[int]
bar: tuple[a: seq[int], b: set[char]]
(foo, bar) = (@[], (@[], {}))