From 8fd274038ea6bbdc42e050d693563080c4cfd9f8 Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 18 May 2013 11:52:43 +0200 Subject: fixes #119 --- compiler/sigmatch.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'compiler/sigmatch.nim') 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 -- cgit 1.4.1-2-gfad0