Regard nil nodes as having equal type constraints.

This commit is contained in:
Matthew Baulch
2016-07-05 22:56:22 +10:00
parent 5f9da6b2ae
commit 109c9d551f

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,