fixes #119
This commit is contained in:
parent
572bfd23c4
commit
8fd274038e
1 changed files with 1 additions and 2 deletions
|
|
@ -553,8 +553,7 @@ proc typeRel(c: var TCandidate, f, a: PType): TTypeRelation =
|
|||
if ff != nil: result = typeRel(c, ff, a)
|
||||
of tyGenericInvokation:
|
||||
var x = a.skipGenericAlias
|
||||
assert(f.sons[0].kind == tyGenericBody)
|
||||
if x.kind == tyGenericInvokation:
|
||||
if x.kind == tyGenericInvokation or f.sons[0].kind != tyGenericBody:
|
||||
#InternalError("typeRel: tyGenericInvokation -> tyGenericInvokation")
|
||||
# simply no match for now:
|
||||
nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue