fix #1016
This commit is contained in:
parent
f49f2f38f0
commit
8ba062d952
1 changed files with 1 additions and 1 deletions
|
|
@ -905,7 +905,7 @@ proc typeRel(c: var TCandidate, f, aOrig: PType, doBind = true): TTypeRelation =
|
|||
of tyGenericParam:
|
||||
var x = PType(idTableGet(c.bindings, f))
|
||||
if x == nil:
|
||||
if c.calleeSym != nil and c.callee.kind == tyGenericBody and
|
||||
if c.callee.kind == tyGenericBody and
|
||||
f.kind == tyGenericParam and not c.typedescMatched:
|
||||
# XXX: The fact that generic types currently use tyGenericParam for
|
||||
# their parameters is really a misnomer. tyGenericParam means "match
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue