summary refs log blame commit diff stats
path: root/tests/ccgbugs/trecursive_table.nim
blob: 3406a1c31f5b277b4bcd651dbaa92e88f1c2613d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                              
# bug #1700
import tables

type
  E* = enum
    eX
    eY
  T* = object
    case kind: E
    of eX:
      xVal: Table[string, T]
    of eY:
      nil

proc p*(x: Table[string, T]) =
  discard