mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-07 12:24:19 +00:00
fixes #1700
This commit is contained in:
17
tests/ccgbugs/trecursive_table.nim
Normal file
17
tests/ccgbugs/trecursive_table.nim
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user