summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2014-01-06 00:16:16 +0200
committerZahary Karadjov <zahary@gmail.com>2014-01-06 00:16:16 +0200
commit1280c56f386111b542c8f0effdd3e5cbc5e84622 (patch)
tree76449affa3538138110838c990c0e7e083e68840 /compiler
parent1ffae7cbafd63ed5d8546dcda1a0e5ec883fd00b (diff)
downloadNim-1280c56f386111b542c8f0effdd3e5cbc5e84622.tar.gz
fix bootstrapping on windows
Diffstat (limited to 'compiler')
-rw-r--r--compiler/sigmatch.nim4
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.} =