make trecinca|b tests green

This commit is contained in:
Araq 2011-12-31 10:23:56 +01:00
commit d25fefc0ff
6 changed files with 11 additions and 6 deletions

View file

@ -388,7 +388,8 @@ proc typeRel(mapping: var TIdTable, f, a: PType): TTypeRelation =
of tyGenericInst:
result = typeRel(mapping, lastSon(f), a)
of tyGenericBody:
result = typeRel(mapping, lastSon(f), a)
let ff = lastSon(f)
if ff != nil: result = typeRel(mapping, ff, a)
of tyGenericInvokation:
assert(f.sons[0].kind == tyGenericBody)
if a.kind == tyGenericInvokation: