summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-04-26 22:36:43 +0200
committerAraq <rumpf_a@web.de>2015-04-26 22:44:06 +0200
commit85bcc14f7f98afc913e729ab4e9f53f7b9ed40bb (patch)
tree6aaa7d9068948a43f1b58d3bc4539175b953f78d /compiler
parent4550a2fb5c3e9672ea0e539af9f3bd2dd28651ee (diff)
downloadNim-85bcc14f7f98afc913e729ab4e9f53f7b9ed40bb.tar.gz
fixes #2607
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semtypes.nim2
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,