Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Nov 15, 2024
1 parent 304f51e commit 6e425ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/semmacrosanity.nim
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ proc annotateType*(n: PNode, t: PType; conf: ConfigRef) =
if field.isNil:
globalError conf, n.info, "invalid field at index " & $i
else:
# only add fields from active case branches
internalAssert(conf, n[i].kind == nkExprColonExpr)
annotateType(n[i][1], field.sym.typ, conf)
if field.delete:
# only codegen fields from active case branches
incl(n[i].flags, nfPreventCg)
of nkPar, nkTupleConstr:
if x.kind == tyTuple:
Expand Down

0 comments on commit 6e425ff

Please sign in to comment.