From d60448fa693c0e1c483232f8fdef39fd2a927e20 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Fri, 21 Oct 2016 03:09:00 +0200 Subject: [PATCH] fixes #4869 --- compiler/types.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/types.nim b/compiler/types.nim index 3db0c45077..4e60e0121f 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