summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorgenotrance <dev@genotrance.com>2018-07-02 15:53:00 -0500
committerAndreas Rumpf <rumpf_a@web.de>2018-07-02 22:53:00 +0200
commit70cf286a220940b86b8f8e5b7209ac55981cf8a8 (patch)
treee086d915ef64b788520be5563eba25fa16d1544d /tests
parentd1f983b37cf1b0aa03b1424c3cca9d4212558db9 (diff)
downloadNim-70cf286a220940b86b8f8e5b7209ac55981cf8a8.tar.gz
Test case for #6281 (#8190)
Diffstat (limited to 'tests')
-rw-r--r--tests/errmsgs/t6281.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/errmsgs/t6281.nim b/tests/errmsgs/t6281.nim
new file mode 100644
index 000000000..59fda5077
--- /dev/null
+++ b/tests/errmsgs/t6281.nim
@@ -0,0 +1,9 @@
+discard """
+errormsg: "invalid type: 'SomeNumber' in this context: 'seq[SomeNumber]' for var"
+line: 6
+"""
+
+var seqwat: seq[SomeNumber] = @[]
+
+proc foo(x: SomeNumber) =
+  seqwat.add(x)
\ No newline at end of file