summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-04-11 02:54:20 +0200
committerAraq <rumpf_a@web.de>2015-04-11 10:01:12 +0200
commit06feaef64a2bb4fbff50091b2f15cb0736c849d3 (patch)
tree4972fd38410ed181bcca0ec3d77028d4cf54c12d /compiler
parenta1b937ab33dc320208be405672ab12d88c92b4b1 (diff)
downloadNim-06feaef64a2bb4fbff50091b2f15cb0736c849d3.tar.gz
fixes #1658
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 664d54221..4a45da2f9 100644
--- a/compiler/semtypes.nim
+++ b/compiler/semtypes.nim
@@ -789,7 +789,7 @@ proc liftParamType(c: PContext, procKind: TSymKind, genericParams: PNode,
                                   @[newTypeS(paramType.kind, c)])
       result = addImplicitGeneric(typ)
     else:
-      for i in 0 .. <paramType.sons.len:
+      for i in 0 .. <paramType.len:
         if paramType.sons[i] == paramType:
           globalError(info, errIllegalRecursionInTypeX, typeToString(paramType))
         var lifted = liftingWalk(paramType.sons[i])