From d05e146b30aef398164d11e04175c375c74d9463 Mon Sep 17 00:00:00 2001 From: Matthew Baulch Date: Mon, 11 Jul 2016 19:12:05 +1000 Subject: Recursively check literals for tyEmpty. --- tests/types/tassignemptytuple.nim | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/types/tassignemptytuple.nim (limited to 'tests') diff --git a/tests/types/tassignemptytuple.nim b/tests/types/tassignemptytuple.nim new file mode 100644 index 000000000..bdfc653a5 --- /dev/null +++ b/tests/types/tassignemptytuple.nim @@ -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) = (@[], (@[], {})) -- cgit 1.4.1-2-gfad0