summary refs log tree commit diff stats
path: root/tests/closure
diff options
context:
space:
mode:
Diffstat (limited to 'tests/closure')
-rw-r--r--tests/closure/tissue1502def.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/closure/tissue1502def.nim b/tests/closure/tissue1502def.nim
new file mode 100644
index 000000000..0aa6b16e3
--- /dev/null
+++ b/tests/closure/tissue1502def.nim
@@ -0,0 +1,6 @@
+import sequtils
+let xs: seq[tuple[key: string, val: seq[string]]] = @[("foo", @["bar"])]
+
+let maps = xs.map(
+  proc(x: auto): tuple[typ: string, maps: seq[string]] =
+    (x.key, x.val.map(proc(x: string): string = x)))
\ No newline at end of file