Merge branch 'devel' into sighashes
This commit is contained in:
commit
237252f90c
14 changed files with 115 additions and 25 deletions
|
|
@ -172,7 +172,9 @@ proc sumGeneric(t: PType): int =
|
|||
inc result
|
||||
of tyGenericInvocation, tyTuple, tyProc:
|
||||
result += ord(t.kind == tyGenericInvocation)
|
||||
for i in 0 .. <t.len: result += t.sons[i].sumGeneric
|
||||
for i in 0 .. <t.len:
|
||||
if t.sons[i] != nil:
|
||||
result += t.sons[i].sumGeneric
|
||||
break
|
||||
of tyGenericParam, tyExpr, tyStatic, tyStmt: break
|
||||
of tyAlias: t = t.lastSon
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue