diff options
author | Araq <rumpf_a@web.de> | 2011-08-08 01:15:09 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-08-08 01:15:09 +0200 |
commit | 12f22ba68a4c12042f2e72febdda32ff84b63307 (patch) | |
tree | e80870ae2e3f18ec86c0526186c0a16fb7604732 /compiler/sigmatch.nim | |
parent | cb21fd4f8f0255099da15da53e304b1ea12f05f3 (diff) | |
download | Nim-12f22ba68a4c12042f2e72febdda32ff84b63307.tar.gz |
fixes #35, fixes #43
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 ea40dd0c9..ecf6a32c4 100755 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -231,7 +231,8 @@ proc typeRel(mapping: var TIdTable, f, a: PType): TTypeRelation = assert(f != nil) assert(a != nil) if a.kind == tyGenericInst and - skipTypes(f, {tyVar}).kind notin {tyGenericBody, tyGenericInvokation}: + skipTypes(f, {tyVar}).kind notin { + tyGenericBody, tyGenericInvokation, tyGenericParam}: return typeRel(mapping, f, lastSon(a)) if a.kind == tyVar and f.kind != tyVar: return typeRel(mapping, f, a.sons[0]) |