summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-07-09 15:23:46 +0200
committerAraq <rumpf_a@web.de>2019-07-09 15:23:46 +0200
commita85e20c1258dd1b29c15e785e570c4b002ed1100 (patch)
treee7ee5530a2aa7651b08cc720aa8b6760080eea10 /compiler
parentfa982b43f0d853f559c9d79089d78dab28287640 (diff)
downloadNim-a85e20c1258dd1b29c15e785e570c4b002ed1100.tar.gz
newruntime: 'owned distinct' is a valid construct (required by async)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/sigmatch.nim1
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