fixes regression: overloading by 'var'

This commit is contained in:
Araq 2015-04-25 23:13:38 +02:00
commit e40b667891
3 changed files with 140 additions and 131 deletions

View file

@ -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