summary refs log tree commit diff stats
path: root/compiler/sigmatch.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-05-18 11:52:43 +0200
committerAraq <rumpf_a@web.de>2013-05-18 11:52:43 +0200
commit8fd274038ea6bbdc42e050d693563080c4cfd9f8 (patch)
tree4c46109802298c416a4433e051e97d6743eda8ee /compiler/sigmatch.nim
parent572bfd23c4016851eb2587d85172bf3caadc7109 (diff)
downloadNim-8fd274038ea6bbdc42e050d693563080c4cfd9f8.tar.gz
fixes #119
Diffstat (limited to 'compiler/sigmatch.nim')
-rw-r--r--compiler/sigmatch.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim
index 3eb485f8f..4ca3e9d43 100644
--- a/compiler/sigmatch.nim
+++ b/compiler/sigmatch.nim
@@ -553,8 +553,7 @@ proc typeRel(c: var TCandidate, f, a: PType): TTypeRelation =
     if ff != nil: result = typeRel(c, ff, a)
   of tyGenericInvokation:
     var x = a.skipGenericAlias
-    assert(f.sons[0].kind == tyGenericBody)
-    if x.kind == tyGenericInvokation:
+    if x.kind == tyGenericInvokation or f.sons[0].kind != tyGenericBody:
       #InternalError("typeRel: tyGenericInvokation -> tyGenericInvokation")
       # simply no match for now:
       nil