diff options
author | Araq <rumpf_a@web.de> | 2019-05-21 09:10:35 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-05-22 07:41:16 +0200 |
commit | 1f7f0908ef0be0b0c16bdea96ff745e3815f2a40 (patch) | |
tree | 3b13d3869627fb263353eb852c015ed74de546f6 /compiler | |
parent | 90e882d55b69020b52efd891c935e942d10829ee (diff) | |
download | Nim-1f7f0908ef0be0b0c16bdea96ff745e3815f2a40.tar.gz |
make bootstrapping work with older Nims
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/sigmatch.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 541ef63da..109cb4de7 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] |