diff options
author | Zahary Karadjov <zahary@gmail.com> | 2014-01-06 00:16:16 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2014-01-06 00:16:16 +0200 |
commit | 1280c56f386111b542c8f0effdd3e5cbc5e84622 (patch) | |
tree | 76449affa3538138110838c990c0e7e083e68840 /compiler | |
parent | 1ffae7cbafd63ed5d8546dcda1a0e5ec883fd00b (diff) | |
download | Nim-1280c56f386111b542c8f0effdd3e5cbc5e84622.tar.gz |
fix bootstrapping on windows
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/sigmatch.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 43f1cded9..7066c5afd 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -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.} = |