Added test for code in @def-'s comment in #1502.

This commit is contained in:
Dominik Picheta
2016-01-16 14:14:29 +00:00
parent 23cebff5fc
commit a395182dd7

View File

@@ -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)))