diff options
author | Araq <rumpf_a@web.de> | 2015-04-26 22:36:43 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-04-26 22:44:06 +0200 |
commit | 85bcc14f7f98afc913e729ab4e9f53f7b9ed40bb (patch) | |
tree | 6aaa7d9068948a43f1b58d3bc4539175b953f78d /compiler | |
parent | 4550a2fb5c3e9672ea0e539af9f3bd2dd28651ee (diff) | |
download | Nim-85bcc14f7f98afc913e729ab4e9f53f7b9ed40bb.tar.gz |
fixes #2607
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semtypes.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index 304fe6d14..8c7bd7243 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -629,7 +629,7 @@ proc skipGenericInvocation(t: PType): PType {.inline.} = result = t if result.kind == tyGenericInvocation: result = result.sons[0] - if result.kind == tyGenericBody: + while result.kind in {tyGenericInst, tyGenericBody}: result = lastSon(result) proc addInheritedFields(c: PContext, check: var IntSet, pos: var int, |