summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-02-14 14:45:49 +0100
committerAraq <rumpf_a@web.de>2015-02-14 14:45:49 +0100
commitdf2fdaf3c5fb8249c47be7566543be3482f9cb48 (patch)
tree08a555ee5f3caa26456288a6975958a6bd00560d /tests
parent199707c189a169c4bf0b00f09775c9b7fa9343f3 (diff)
downloadNim-df2fdaf3c5fb8249c47be7566543be3482f9cb48.tar.gz
fixes #2121
Diffstat (limited to 'tests')
-rw-r--r--tests/tuples/tgeneric_tuple.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/tuples/tgeneric_tuple.nim b/tests/tuples/tgeneric_tuple.nim
new file mode 100644
index 000000000..32f081596
--- /dev/null
+++ b/tests/tuples/tgeneric_tuple.nim
@@ -0,0 +1,9 @@
+# bug #2121
+
+type
+  Item[K,V] = tuple
+    key: K
+    value: V
+
+var q = newseq[Item[int,int]](0)
+let (x,y) = q[0]