diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2023-11-20 21:12:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-20 21:12:13 +0100 |
commit | 02be027e9b3c146c0a594c3ea4fae7152fd8b974 (patch) | |
tree | b9a95b4b29df31be23dafda1dcdc1ab4e2762372 /compiler/semobjconstr.nim | |
parent | cecaf9c56b1240a44a4de837e03694a0c55ec379 (diff) | |
download | Nim-02be027e9b3c146c0a594c3ea4fae7152fd8b974.tar.gz |
IC: progress and refactorings (#22961)
Diffstat (limited to 'compiler/semobjconstr.nim')
-rw-r--r-- | compiler/semobjconstr.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semobjconstr.nim b/compiler/semobjconstr.nim index 33278af2f..37c939bcd 100644 --- a/compiler/semobjconstr.nim +++ b/compiler/semobjconstr.nim @@ -180,7 +180,7 @@ proc collectOrAddMissingCaseFields(c: PContext, branchNode: PNode, constrCtx: var ObjConstrContext, defaults: var seq[PNode]) = let res = collectMissingCaseFields(c, branchNode, constrCtx, defaults) for sym in res: - let asgnType = newType(tyTypeDesc, nextTypeId(c.idgen), sym.typ.owner) + let asgnType = newType(tyTypeDesc, c.idgen, sym.typ.owner) let recTyp = sym.typ.skipTypes(defaultFieldsSkipTypes) rawAddSon(asgnType, recTyp) let asgnExpr = newTree(nkCall, |