summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
diff options
context:
space:
mode:
authorAditya Siram <aditya.siram@gmail.com>2022-09-22 13:19:36 -0500
committerGitHub <noreply@github.com>2022-09-22 14:19:36 -0400
commitbe4bd8a0edd527b24679372b8cb9d2afa548056d (patch)
treead3dbd501251431bce080026d6bff31e431823b7 /compiler/semstmts.nim
parentdb8a62d4802a005b80aa07ca355ddee4bf098b11 (diff)
downloadNim-be4bd8a0edd527b24679372b8cb9d2afa548056d.tar.gz
Fixes #20348; only respect the recursion limit if the symbol's generic type has been generated by the compiler (#20377)
Fixes #20348
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r--compiler/semstmts.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index 1e8930fc9..fd8f2180b 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -1425,6 +1425,7 @@ proc typeSectionRightSidePass(c: PContext, n: PNode) =
         excl(objTy.flags, tfFinal)
       let obj = newSym(skType, getIdent(c.cache, s.name.s & ":ObjectType"),
                        nextSymId c.idgen, getCurrOwner(c), s.info)
+      obj.flags.incl sfGeneratedType
       let symNode = newSymNode(obj)
       obj.ast = a.shallowCopy
       case a[0].kind