improves the stability of 'nim check'

This commit is contained in:
Andreas Rumpf
2018-03-13 08:15:14 +01:00
parent ac10a3813a
commit 55a5dcf8a4
2 changed files with 3 additions and 2 deletions

View File

@@ -1242,7 +1242,9 @@ proc typeRelImpl(c: var TCandidate, f, aOrig: PType,
if result < isGeneric: result = isNone
elif a.kind == tyGenericParam:
result = isGeneric
of tyForward: internalError("forward type in typeRel()")
of tyForward:
#internalError("forward type in typeRel()")
result = isNone
of tyNil:
if a.kind == f.kind: result = isEqual
of tyTuple: