mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 19:22:40 +00:00
fixes #4869
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user