We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type TrackySeq[T] = object s: seq[T] pos: int proc foobar(ls: var TrackySeq[seq[int]], i: int): var seq[int] = echo ls.pos # removing this, or making the return explicit works ls.s[i] var foo: TrackySeq[seq[int]] foo.s.add(@[0]) foo.foobar(0).add(1) echo foo.s
foob.nim(8, 3) Error: internal error: genAddr: nkStmtListExpr
0 @[@[0, 1]]
$ nim -v Nim Compiler Version 0.19.9 [Linux: amd64] Compiled at 2019-05-18 Copyright (c) 2006-2019 by Andreas Rumpf active boot switches: -d:release
The text was updated successfully, but these errors were encountered:
fix nim-lang#11354 jsgen not carefully handle genAddr with nkHiddenAd…
d511d7f
…dr,nkStmtListExpr; genAsgn with lvalue tyVar and rvalue tyPtr
add test for nim-lang#11354
99717cd
cac09a4
26c2dc3
…dr,nkStm… (nim-lang#15078) * fix nim-lang#11354 jsgen not carefully handle genAddr with nkHiddenAddr,nkStmtListExpr; genAsgn with lvalue tyVar and rvalue tyPtr * correct logic * add test for nim-lang#11354 * handle nkHiddenAddr when n.len == 1 * Update compiler/jsgen.nim * Update compiler/jsgen.nim * Apply suggestions from code review Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
No branches or pull requests
Example
Current Output
Expected Output
The text was updated successfully, but these errors were encountered: