diff options
author | Araq <rumpf_a@web.de> | 2019-07-09 15:23:46 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-07-09 15:23:46 +0200 |
commit | a85e20c1258dd1b29c15e785e570c4b002ed1100 (patch) | |
tree | e7ee5530a2aa7651b08cc720aa8b6760080eea10 /compiler | |
parent | fa982b43f0d853f559c9d79089d78dab28287640 (diff) | |
download | Nim-a85e20c1258dd1b29c15e785e570c4b002ed1100.tar.gz |
newruntime: 'owned distinct' is a valid construct (required by async)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/sigmatch.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index bff7d941b..c37151a8f 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -1293,6 +1293,7 @@ proc typeRel(c: var TCandidate, f, aOrig: PType, inc(c.inheritancePenalty, depth) result = isSubtype of tyDistinct: + skipOwned(a) if a.kind == tyDistinct: if sameDistinctTypes(f, a): result = isEqual #elif f.base.kind == tyAnything: result = isGeneric # issue 4435 |