aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Viswanathan <dev@genotrance.com>2018-12-05 00:35:15 -0600
committerGanesh Viswanathan <dev@genotrance.com>2018-12-05 00:35:15 -0600
commitd835d29e3ec1260569bb98866679110b2d193daa (patch)
tree1f11334abd14c1f25f103f65afd498e5e34e14ce
parent7c8afa19975517b18553f2eb3007c0e279360299 (diff)
downloadnimterop-d835d29e3ec1260569bb98866679110b2d193daa.tar.gz
nimterop-d835d29e3ec1260569bb98866679110b2d193daa.zip
Fix recursion in type
-rw-r--r--nimterop/grammar.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/nimterop/grammar.nim b/nimterop/grammar.nim
index 455d2e8..4a949cb 100644
--- a/nimterop/grammar.nim
+++ b/nimterop/grammar.nim
@@ -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"
))