make bootstrapping work with older Nims

This commit is contained in:
Araq 2019-05-21 09:10:35 +02:00 • committed by Andreas Rumpf
commit 1f7f0908ef

View file

@ -1392,8 +1392,7 @@ proc typeRel(c: var TCandidate, f, aOrig: PType,
if roota.base == rootf.base: if roota.base == rootf.base:
let nextFlags = flags + {trNoCovariance} let nextFlags = flags + {trNoCovariance}
var hasCovariance = false var hasCovariance = false
const noBug {.booldefine.} = false result = isEqual
result = when noBug: isGeneric else: isEqual
for i in 1 .. rootf.sonsLen-2: for i in 1 .. rootf.sonsLen-2:
let ff = rootf.sons[i] let ff = rootf.sons[i]