diff options
author | Araq <rumpf_a@web.de> | 2011-12-31 10:23:56 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-12-31 10:23:56 +0100 |
commit | d25fefc0ff05ebf38b09809edfb8ef3a3ae6c8a2 (patch) | |
tree | 01b551a36ba3c4913ed2f01bd4d30b89f6d9c188 /compiler/sigmatch.nim | |
parent | 9fdfda136c4d3ec0d8e72867345b427b30e88ef4 (diff) | |
download | Nim-d25fefc0ff05ebf38b09809edfb8ef3a3ae6c8a2.tar.gz |
make trecinca|b tests green
Diffstat (limited to 'compiler/sigmatch.nim')
-rwxr-xr-x | compiler/sigmatch.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index a6bde6e40..9a8f3cee1 100755 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -388,7 +388,8 @@ proc typeRel(mapping: var TIdTable, f, a: PType): TTypeRelation = of tyGenericInst: result = typeRel(mapping, lastSon(f), a) of tyGenericBody: - result = typeRel(mapping, lastSon(f), a) + let ff = lastSon(f) + if ff != nil: result = typeRel(mapping, ff, a) of tyGenericInvokation: assert(f.sons[0].kind == tyGenericBody) if a.kind == tyGenericInvokation: |