fixes regression: overloading by 'var'
This commit is contained in:
parent
d3fc6e1f28
commit
e40b667891
3 changed files with 140 additions and 131 deletions
|
|
@ -159,7 +159,7 @@ proc sumGeneric(t: PType): int =
|
|||
inc result
|
||||
inc isvar
|
||||
of tyGenericInvocation, tyTuple:
|
||||
result = ord(t.kind == tyGenericInvocation)
|
||||
result += ord(t.kind == tyGenericInvocation)
|
||||
for i in 0 .. <t.len: result += t.sons[i].sumGeneric
|
||||
break
|
||||
of tyGenericParam, tyExpr, tyStatic, tyStmt, tyTypeDesc: break
|
||||
|
|
@ -167,7 +167,8 @@ proc sumGeneric(t: PType): int =
|
|||
tyString, tyCString, tyInt..tyInt64, tyFloat..tyFloat128,
|
||||
tyUInt..tyUInt64:
|
||||
return isvar
|
||||
else: return 0
|
||||
else:
|
||||
return 0
|
||||
|
||||
#var ggDebug: bool
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue