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
lent
when true: template main = iterator fn[T](a:T): lent T = yield a let a = @[10] for b in fn(a): echo b static: main() main()
js+vm: @[10] js+rt: @[]
js+vm: @[10] js+rt: @[10]
likewise, js+rt is broken with the following:
# bugs: let a = "abc" # let a = "abc".cstring # let a = 12 # ok: # let a = [1,2] # let a = (1,2)
a test fixing this should cover all those, and ideally more types.
1.5.1 fa9dc31
The text was updated successfully, but these errors were encountered:
seq
Optimize lent in JS [backport 1.6]
42252f1
fixes nim-lang#16800, fixes nim-lang#16073, adds disabled test case for nim-lang#16908
No branches or pull requests
Example 1
Current Output
js+vm: @[10]
js+rt: @[]
Expected Output
js+vm: @[10]
js+rt: @[10]
Example 2
likewise, js+rt is broken with the following:
a test fixing this should cover all those, and ideally more types.
Additional Information
1.5.1 fa9dc31
The text was updated successfully, but these errors were encountered: