summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorMatthew Baulch <baulch.matt@gmail.com>2016-07-11 19:12:05 +1000
committerMatthew Baulch <baulch.matt@gmail.com>2016-07-11 19:12:05 +1000
commitd05e146b30aef398164d11e04175c375c74d9463 (patch)
tree120e60b64b32755478aed9326a415240631d491d /tests
parentd7e172a6bc351ed926f93b77a14fc5cddbce3293 (diff)
downloadNim-d05e146b30aef398164d11e04175c375c74d9463.tar.gz
Recursively check literals for tyEmpty.
Diffstat (limited to 'tests')
-rw-r--r--tests/types/tassignemptytuple.nim11
1 files changed, 11 insertions, 0 deletions
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) = (@[], (@[], {}))