fixes #4869
This commit is contained in:
parent
b3ef424b9c
commit
d60448fa69
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue