diff options
author | Matthew Baulch <baulch.matt@gmail.com> | 2016-07-11 19:12:05 +1000 |
---|---|---|
committer | Matthew Baulch <baulch.matt@gmail.com> | 2016-07-11 19:12:05 +1000 |
commit | d05e146b30aef398164d11e04175c375c74d9463 (patch) | |
tree | 120e60b64b32755478aed9326a415240631d491d /tests | |
parent | d7e172a6bc351ed926f93b77a14fc5cddbce3293 (diff) | |
download | Nim-d05e146b30aef398164d11e04175c375c74d9463.tar.gz |
Recursively check literals for tyEmpty.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/types/tassignemptytuple.nim | 11 |
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) = (@[], (@[], {})) |