diff options
author | Arne Döring <arne.doering@gmx.net> | 2018-11-08 19:32:35 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-11-08 22:28:29 +0100 |
commit | fdd09ad0902eb7967d7bffe7777cf2a12ca4d88a (patch) | |
tree | 70939bda3ce3f052fdc11f1d6789bc70f708094f /tests/discard | |
parent | b306e0bfe2a32229f8a8590e022b42f206e130a7 (diff) | |
download | Nim-fdd09ad0902eb7967d7bffe7777cf2a12ca4d88a.tar.gz |
add illegal discard test
Diffstat (limited to 'tests/discard')
-rw-r--r-- | tests/discard/tillegaldiscard.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/discard/tillegaldiscard.nim b/tests/discard/tillegaldiscard.nim new file mode 100644 index 000000000..5e1a3f03e --- /dev/null +++ b/tests/discard/tillegaldiscard.nim @@ -0,0 +1,9 @@ +discard """ + line: 9 + errormsg: "illegal discard" +""" + +proc pop[T](arg: T): T = + echo arg + +discard tillegaldiscard.pop |