Skip to content

Commit

Permalink
no need to copy here either
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Sep 28, 2024
1 parent 6b5e4ea commit c0ada05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/sigmatch.nim
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ proc matchGenericParam(m: var TCandidate, formal: PType, n: PNode) =
if n.kind in nkSymChoices: n.flags.excl nfSem
let evaluated = m.c.semTryConstExpr(m.c, n, formalBase.skipTypes({tyStatic}))
if evaluated != nil:
arg = makeStaticType(m.c, evaluated.typ, evaluated.copyTree)
arg = makeStaticType(m.c, evaluated.typ, evaluated)
elif formalBase.kind == tyTypeDesc:
if arg.kind != tyTypeDesc:
arg = makeTypeDesc(m.c, arg)
Expand Down

0 comments on commit c0ada05

Please sign in to comment.