summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2014-03-20 23:24:25 +0200
committerZahary Karadjov <zahary@gmail.com>2014-03-20 23:24:25 +0200
commit8ba062d952f1bb4e8330bb7f5f04c2cd949e29b3 (patch)
treeddb46de6909c519c86297122c0bd9932a1e474d2 /compiler
parentf49f2f38f01b4ac0ada06bef48bf30bc0c910ce1 (diff)
downloadNim-8ba062d952f1bb4e8330bb7f5f04c2cd949e29b3.tar.gz
fix #1016
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 ae31f1630..b9fb0c957 100644
--- a/compiler/sigmatch.nim
+++ b/compiler/sigmatch.nim
@@ -905,7 +905,7 @@ proc typeRel(c: var TCandidate, f, aOrig: PType, doBind = true): TTypeRelation =
   of tyGenericParam:
     var x = PType(idTableGet(c.bindings, f))
     if x == nil:
-      if c.calleeSym != nil and c.callee.kind == tyGenericBody and
+      if c.callee.kind == tyGenericBody and
          f.kind == tyGenericParam and not c.typedescMatched:
         # XXX: The fact that generic types currently use tyGenericParam for 
         # their parameters is really a misnomer. tyGenericParam means "match