Recursively check literals for tyEmpty.

This commit is contained in:
Matthew Baulch 2016-07-11 19:12:05 +10:00
commit d05e146b30
2 changed files with 19 additions and 2 deletions

View file

@ -0,0 +1,11 @@
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) = (@[], (@[], {}))