newruntime: 'owned distinct' is a valid construct (required by async)
This commit is contained in:
parent
fa982b43f0
commit
a85e20c125
1 changed files with 1 additions and 0 deletions
|
|
@ -1293,6 +1293,7 @@ proc typeRel(c: var TCandidate, f, aOrig: PType,
|
||||||
inc(c.inheritancePenalty, depth)
|
inc(c.inheritancePenalty, depth)
|
||||||
result = isSubtype
|
result = isSubtype
|
||||||
of tyDistinct:
|
of tyDistinct:
|
||||||
|
skipOwned(a)
|
||||||
if a.kind == tyDistinct:
|
if a.kind == tyDistinct:
|
||||||
if sameDistinctTypes(f, a): result = isEqual
|
if sameDistinctTypes(f, a): result = isEqual
|
||||||
#elif f.base.kind == tyAnything: result = isGeneric # issue 4435
|
#elif f.base.kind == tyAnything: result = isGeneric # issue 4435
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue