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

Another case of missing alias tracking #1340

Closed
athas opened this issue May 10, 2021 · 0 comments · Fixed by #1342
Closed

Another case of missing alias tracking #1340

athas opened this issue May 10, 2021 · 0 comments · Fixed by #1342

Comments

@athas
Copy link
Member

athas commented May 10, 2021

let main n =
  let (a,b) = let y = iota n
              in (y,y)
  let a[0] = 0
  let b[0] = 0
  in (a,b)

Interestingly, the type checker complains as expected if we try to return (a,b) as two unique arrays, so we do actually track that a and b are aliased.

athas added a commit that referenced this issue May 11, 2021
athas added a commit that referenced this issue May 11, 2021
athas added a commit that referenced this issue May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant