make bootstrapping work with older Nims

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

View File

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