diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-10-21 03:09:00 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-10-21 03:09:00 +0200 |
commit | d60448fa693c0e1c483232f8fdef39fd2a927e20 (patch) | |
tree | b66dc99c8b1a78bccca70ae7640ef9e83995b9ef | |
parent | b3ef424b9ca80625ec2752a8074a72591a65faf2 (diff) | |
download | Nim-d60448fa693c0e1c483232f8fdef39fd2a927e20.tar.gz |
fixes #4869
-rw-r--r-- | compiler/types.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/types.nim b/compiler/types.nim index 3db0c4507..4e60e0121 100644 --- a/compiler/types.nim +++ b/compiler/types.nim @@ -1374,7 +1374,7 @@ proc safeInheritanceDiff*(a, b: PType): int = if a.kind == tyError or b.kind == tyError: result = -1 else: - result = inheritanceDiff(a, b) + result = inheritanceDiff(a.skipTypes(skipPtrs), b.skipTypes(skipPtrs)) proc compatibleEffectsAux(se, re: PNode): bool = if re.isNil: return false |