parent
d55cc0888d
commit
de1ede77fe
2 changed files with 9 additions and 1 deletions
|
|
@ -1293,7 +1293,7 @@ proc typeRel(c: var TCandidate, f, aOrig: PType,
|
|||
inc(c.inheritancePenalty, depth)
|
||||
result = isSubtype
|
||||
of tyDistinct:
|
||||
skipOwned(a)
|
||||
a = a.skipTypes({tyOwned, tyGenericInst, tyRange})
|
||||
if a.kind == tyDistinct:
|
||||
if sameDistinctTypes(f, a): result = isEqual
|
||||
#elif f.base.kind == tyAnything: result = isGeneric # issue 4435
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue