summary refs log tree commit diff stats
path: root/tests/generics/t2tables.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/generics/t2tables.nim')
-rw-r--r--tests/generics/t2tables.nim15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/generics/t2tables.nim b/tests/generics/t2tables.nim
new file mode 100644
index 000000000..e4b1fb967
--- /dev/null
+++ b/tests/generics/t2tables.nim
@@ -0,0 +1,15 @@
+discard """
+action: compile
+"""
+
+# bug #3669
+
+import tables
+
+type
+  G[T] = object
+    inodes: Table[int, T]
+    rnodes: Table[T, int]
+
+var g: G[string]
+echo g.rnodes["foo"]