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

View File

@@ -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