fixes #3338
This commit is contained in:
parent
3f24a7ff3e
commit
d93507fd2e
4 changed files with 51 additions and 4 deletions
|
|
@ -991,7 +991,9 @@ proc compareTypes*(x, y: PType,
|
|||
var c = initSameTypeClosure()
|
||||
c.cmp = cmp
|
||||
c.flags = flags
|
||||
result = sameTypeAux(x, y, c)
|
||||
if x == y: result = true
|
||||
elif x.isNil or y.isNil: result = false
|
||||
else: result = sameTypeAux(x, y, c)
|
||||
|
||||
proc inheritanceDiff*(a, b: PType): int =
|
||||
# | returns: 0 iff `a` == `b`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue