summary refs log tree commit diff stats
path: root/tests/compile/tgeneric2.nim
blob: b9b8e5a6290ac9c452056e520ca890e47a3acb51 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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"]