Skip to content

Commit

Permalink
not sure what caused this
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Dec 25, 2023
1 parent 1bb5513 commit d6dac90
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 @@ -239,7 +239,8 @@ proc sumGeneric(t: PType): int =
result += sumGeneric(a)
break
of tyProc:
result += sumGeneric(t.returnType)
if t.returnType != nil:
result += sumGeneric(t.returnType)
for _, a in t.paramTypes:
result += sumGeneric(a)
break
Expand Down

0 comments on commit d6dac90

Please sign in to comment.