Skip to content
New issue

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

array assigment order matters #24734

Open
hamidb80 opened this issue Feb 28, 2025 · 1 comment
Open

array assigment order matters #24734

hamidb80 opened this issue Feb 28, 2025 · 1 comment

Comments

@hamidb80
Copy link
Contributor

Nim Version

Nim Compiler Version 2.2.2 [Windows: amd64]
Compiled at 2025-02-06
Copyright (c) 2006-2025 by Andreas Rumpf

Description

var cache = [-1,-1]
cache     = [2, cache[0]] 

Current Output

[2,2]

Expected Output

[2,-1]

Known Workarounds

No response

Additional Information

No response

@hamidb80
Copy link
Contributor Author

hamidb80 commented Mar 1, 2025

!nim c

var cache = [-1,-1]
cache     = [2, cache[0]] 
assert cache == [2, -1]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant