summary refs log tree commit diff stats
path: root/tests/rodfiles/tgeneric2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rodfiles/tgeneric2.nim')
-rw-r--r--tests/rodfiles/tgeneric2.nim13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/rodfiles/tgeneric2.nim b/tests/rodfiles/tgeneric2.nim
new file mode 100644
index 000000000..552d60267
--- /dev/null
+++ b/tests/rodfiles/tgeneric2.nim
@@ -0,0 +1,13 @@
+discard """
+  output: "abef"
+"""
+
+import tables
+
+var x = initTable[int, string]()
+
+x[2] = "ab"
+x[5] = "ef"
+
+echo x[2], x[5]
+