summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-07-13 07:55:56 +0200
committerGitHub <noreply@github.com>2019-07-13 07:55:56 +0200
commitde1ede77fe91170269d5bf54a01e61ff95f6dc56 (patch)
tree755f30896c35433e0589c8821cec5c2dcd58b9f6 /compiler
parentd55cc0888d1140e4bdac0beacba424f8e767da7c (diff)
downloadNim-de1ede77fe91170269d5bf54a01e61ff95f6dc56.tar.gz
fixes #11715 (#11721)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/sigmatch.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim
index 39dcfedcf..003bca646 100644
--- a/compiler/sigmatch.nim
+++ b/compiler/sigmatch.nim
@@ -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