summary refs log tree commit diff stats
path: root/tests/compile/tgeneric2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compile/tgeneric2.nim')
-rw-r--r--tests/compile/tgeneric2.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/compile/tgeneric2.nim b/tests/compile/tgeneric2.nim
new file mode 100644
index 000000000..b9b8e5a62
--- /dev/null
+++ b/tests/compile/tgeneric2.nim
@@ -0,0 +1,11 @@
+import tables
+
+type
+  TX = TTable[string, int]
+
+proc foo(models: seq[TX]): seq[int] =
+  result = @[]
+  for model in models.items:
+    result.add model["foobar"]
+
+