From 1f7f0908ef0be0b0c16bdea96ff745e3815f2a40 Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 21 May 2019 09:10:35 +0200 Subject: [PATCH] make bootstrapping work with older Nims --- compiler/sigmatch.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 541ef63da4..109cb4de7e 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -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]