commit
a352109ade
1 changed files with 2 additions and 6 deletions
|
|
@ -622,8 +622,6 @@ proc initSameTypeClosure: TSameTypeClosure =
|
||||||
# we do the initialization lazily for performance (avoids memory allocations)
|
# we do the initialization lazily for performance (avoids memory allocations)
|
||||||
nil
|
nil
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
proc containsOrIncl(c: var TSameTypeClosure, a, b: PType): bool =
|
proc containsOrIncl(c: var TSameTypeClosure, a, b: PType): bool =
|
||||||
result = not IsNil(c.s) and c.s.contains((a.id, b.id))
|
result = not IsNil(c.s) and c.s.contains((a.id, b.id))
|
||||||
if not result:
|
if not result:
|
||||||
|
|
@ -756,8 +754,6 @@ proc sameObjectTypes*(a, b: PType): bool =
|
||||||
var c = initSameTypeClosure()
|
var c = initSameTypeClosure()
|
||||||
result = sameTypeAux(a, b, c)
|
result = sameTypeAux(a, b, c)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
proc sameDistinctTypes*(a, b: PType): bool {.inline.} =
|
proc sameDistinctTypes*(a, b: PType): bool {.inline.} =
|
||||||
result = sameObjectTypes(a, b)
|
result = sameObjectTypes(a, b)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue