diff options
author | Aditya Siram <aditya.siram@gmail.com> | 2022-09-22 13:19:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-22 14:19:36 -0400 |
commit | be4bd8a0edd527b24679372b8cb9d2afa548056d (patch) | |
tree | ad3dbd501251431bce080026d6bff31e431823b7 /compiler/semstmts.nim | |
parent | db8a62d4802a005b80aa07ca355ddee4bf098b11 (diff) | |
download | Nim-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.nim | 1 |
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 |