diff options
Diffstat (limited to 'tests/ccgbugs/trecursive_table.nim')
-rw-r--r-- | tests/ccgbugs/trecursive_table.nim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ccgbugs/trecursive_table.nim b/tests/ccgbugs/trecursive_table.nim new file mode 100644 index 000000000..3406a1c31 --- /dev/null +++ b/tests/ccgbugs/trecursive_table.nim @@ -0,0 +1,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 |