mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-12 14:48:14 +00:00
@@ -246,7 +246,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
|
||||
|
||||
Reference in New Issue
Block a user