fix bootstrapping on windows

This commit is contained in:
Zahary Karadjov
2014-01-06 00:16:16 +02:00
parent 1ffae7cbaf
commit 1280c56f38

View File

@@ -430,7 +430,9 @@ proc typeRel(c: var TCandidate, f, aOrig: PType, doBind = true): TTypeRelation =
return typeRel(c, f, lastSon(a))
template bindingRet(res) =
when res == isGeneric: put(c.bindings, f, aOrig)
when res == isGeneric:
let bound = aOrig.skipTypes({tyRange}).skipIntLit
put(c.bindings, f, bound)
return res
template considerPreviousT(body: stmt) {.immediate.} =