Merge pull request #4449 from mbaulch/fix4003
Fix #4003: Regard nil nodes as having equal type constraints.
This commit is contained in:
commit
b681e91745
1 changed files with 1 additions and 0 deletions
|
|
@ -727,6 +727,7 @@ proc equalParam(a, b: PSym): TParamsEquality =
|
|||
result = paramsNotEqual
|
||||
|
||||
proc sameConstraints(a, b: PNode): bool =
|
||||
if isNil(a) and isNil(b): return true
|
||||
internalAssert a.len == b.len
|
||||
for i in 1 .. <a.len:
|
||||
if not exprStructuralEquivalent(a[i].sym.constraint,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue