From a395182dd7577ffa099b351ff7adfd3bb6939d54 Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Sat, 16 Jan 2016 14:14:29 +0000 Subject: Added test for code in @def-'s comment in #1502. --- tests/closure/tissue1502def.nim | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/closure/tissue1502def.nim (limited to 'tests/closure') 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 -- cgit 1.4.1-2-gfad0