diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-07-13 07:55:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-13 07:55:56 +0200 |
commit | de1ede77fe91170269d5bf54a01e61ff95f6dc56 (patch) | |
tree | 755f30896c35433e0589c8821cec5c2dcd58b9f6 /compiler | |
parent | d55cc0888d1140e4bdac0beacba424f8e767da7c (diff) | |
download | Nim-de1ede77fe91170269d5bf54a01e61ff95f6dc56.tar.gz |
fixes #11715 (#11721)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/sigmatch.nim | 2 |
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 |