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
We expect X to be unmodifiable (and panic with an error) however, instead the underlying data of the slice is corrupted.
Similar to an array marked with @(rodata), we expect to panic
@(rodata) m_nums := []int{2,5,6}; ret_m_slice :: proc() -> []int { return m_nums; } main :: proc() { x := ret_m_slice(); y := 1; x[y] = 7; fmt.println(x); fmt.println(ret_m_slice()); }
odin build temp && ./temp.bin [2, 7, 6] [2, 7, 6]
The text was updated successfully, but these errors were encountered:
bc5b419
No branches or pull requests
Context
Expected Behavior
We expect X to be unmodifiable (and panic with an error) however, instead the underlying data of the slice is corrupted.
Current Behavior
Similar to an array marked with @(rodata), we expect to panic
Steps to Reproduce
shell output
The text was updated successfully, but these errors were encountered: