diff options
author | Araq <rumpf_a@web.de> | 2013-05-18 11:52:43 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-05-18 11:52:43 +0200 |
commit | 8fd274038ea6bbdc42e050d693563080c4cfd9f8 (patch) | |
tree | 4c46109802298c416a4433e051e97d6743eda8ee /compiler/sigmatch.nim | |
parent | 572bfd23c4016851eb2587d85172bf3caadc7109 (diff) | |
download | Nim-8fd274038ea6bbdc42e050d693563080c4cfd9f8.tar.gz |
fixes #119
Diffstat (limited to 'compiler/sigmatch.nim')
-rw-r--r-- | compiler/sigmatch.nim | 3 |
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 |