Fix recursion in type
This commit is contained in:
parent
7c8afa1997
commit
d835d29e3e
1 changed files with 2 additions and 0 deletions
|
|
@ -50,6 +50,8 @@ proc initGrammar() =
|
|||
|
||||
if name notin gStateRT.types:
|
||||
gStateRT.types.add(name)
|
||||
if name == typ:
|
||||
typ = "object"
|
||||
gStateRT.typeStr &= &" {name}* = {typ}\n"
|
||||
))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue