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


               











                         
discard """
action: compile
"""

# bug #3669

import tables

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

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