Fix iterating through return type

This commit is contained in:
coffeepots 2018-11-23 16:05:46 +00:00
parent 5e7f2d6a61
commit e942357de6
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ iterator paramsIter(params: NimNode): tuple[name, ntype: NimNode] =
yield (arg[j], argType)
iterator paramsRevIter(params: NimNode): tuple[name, ntype: NimNode] =
for i in countDown(params.len-1,0):
for i in countDown(params.len-1,1):
let arg = params[i]
let argType = arg[^2]
for j in 0 ..< arg.len-2: