summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-01-20 20:07:55 +0100
committerAraq <rumpf_a@web.de>2014-01-20 20:07:55 +0100
commit85a5bfe60520a59ff9ce493dfa65bf9cbd86059e (patch)
tree384ae94758d04689fbd1c28799bf0c633caeeeb7 /compiler
parent4a0aadef4d1eef2920bd84cbc532b607741a239a (diff)
parenta09ddfa0995db598aa2287d08a5e31ea172fcaba (diff)
downloadNim-85a5bfe60520a59ff9ce493dfa65bf9cbd86059e.tar.gz
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
Diffstat (limited to 'compiler')
-rw-r--r--compiler/sigmatch.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim
index 1fe667a3c..bb70e0d6b 100644
--- a/compiler/sigmatch.nim
+++ b/compiler/sigmatch.nim
@@ -103,7 +103,7 @@ proc initCandidate*(ctx: PContext, c: var TCandidate, callee: PSym,
     for i in 1..min(sonsLen(typeParams), sonsLen(binding)-1):
       var formalTypeParam = typeParams.sons[i-1].typ
       var bound = binding[i].typ
-      if formalTypeParam.kind != tyTypeDesc:
+      if bound != nil and formalTypeParam.kind != tyTypeDesc:
         bound = bound.skipTypes({tyTypeDesc})
       put(c.bindings, formalTypeParam, bound)