We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 595e06d commit 1eb13cfCopy full SHA for 1eb13cf
src/nimony/sem.nim
@@ -3686,7 +3686,7 @@ proc semBorrow(c: var SemContext; fn: StrId; beforeParams: int) =
3686
var it = Item(n: n, typ: c.types.autoType)
3687
let resId = declareResult(c, it.n.info)
3688
semProcBody c, it
3689
- addReturnResult c, resId, it.n.info
+ addReturnResult c, resId, procBody[procBody.len - 1].info
3690
3691
proc getParamsType(c: var SemContext; paramsAt: int): seq[TypeCursor] =
3692
result = @[]
0 commit comments