Merge pull request #4449 from mbaulch/fix4003

Fix #4003: Regard nil nodes as having equal type constraints.
This commit is contained in:
Andreas Rumpf
2016-07-06 12:12:42 +02:00
committed by GitHub

View File

@@ -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,