summary refs log blame commit diff stats
path: root/tests/generics/t2tables.nim
blob: 3ef5e621ed8e730eb622e9a2fcd909bcec339115 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                         
# bug #3669

import tables

type
  G[T] = object
    inodes: Table[int, T]
    rnodes: Table[T, int]

var g: G[string]
echo g.rnodes["foo"]