Skip to content

Commit

Permalink
fix match count
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Jan 6, 2024
1 parent 2857fd3 commit cc438a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/sigmatch.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2172,10 +2172,11 @@ proc paramTypesMatchAux(m: var TCandidate, f, a: PType,
m.calleeSym.kind in {skMacro, skTemplate}:
# XXX: duplicating this is ugly, but we cannot (!) move this
# directly into typeRel using return-like templates
incMatches(m, r)
if f.kind in {tyTyped, tyUntyped, tyTypeDesc}:
incMatches(m, r)
return arg
elif f.kind == tyStatic and arg.typ.n != nil:
incMatches(m, r)
return arg.typ.n

# If r == isBothMetaConvertible then we rerun typeRel.
Expand Down

0 comments on commit cc438a8

Please sign in to comment.