This commit is contained in:
Andreas Rumpf 2016-10-21 03:09:00 +02:00
commit d60448fa69

View file

@ -1374,7 +1374,7 @@ proc safeInheritanceDiff*(a, b: PType): int =
if a.kind == tyError or b.kind == tyError: if a.kind == tyError or b.kind == tyError:
result = -1 result = -1
else: else:
result = inheritanceDiff(a, b) result = inheritanceDiff(a.skipTypes(skipPtrs), b.skipTypes(skipPtrs))
proc compatibleEffectsAux(se, re: PNode): bool = proc compatibleEffectsAux(se, re: PNode): bool =
if re.isNil: return false if re.isNil: return false