fixes #544
This commit is contained in:
parent
f9426bfcd5
commit
b1d4dfa6b1
4 changed files with 21 additions and 3 deletions
|
|
@ -959,8 +959,8 @@ proc skipGenericAlias*(t: PType): PType =
|
|||
proc matchTypeClass*(bindings: var TIdTable, typeClass, t: PType): bool =
|
||||
for i in countup(0, typeClass.sonsLen - 1):
|
||||
let req = typeClass.sons[i]
|
||||
var match = req.kind == skipTypes(t, {tyRange, tyGenericInst}).kind
|
||||
|
||||
var match = req.kind == skipTypes(t, {tyGenericInst, tyRange}).kind or
|
||||
req.kind == skipTypes(t, {tyGenericInst}).kind
|
||||
if not match:
|
||||
case req.kind
|
||||
of tyGenericBody:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue