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

Pattern match failure in pats_typerase_dynexp.dats #133

Closed
shlevy opened this issue Apr 16, 2015 · 2 comments
Closed

Pattern match failure in pats_typerase_dynexp.dats #133

shlevy opened this issue Apr 16, 2015 · 2 comments

Comments

@shlevy
Copy link
Contributor

shlevy commented Apr 16, 2015

With the following code:

fn foo (): void = let
  val buf_sz = i2sz(10)
  var buf = @[byte][buf_sz]()
in () end

I get:

exit(ATS): /home/shlevy/src/ATS-Postiats/src/pats_typerase_dynexp.dats: 18567(line=820, offs=9) -- 18619(line=820, offs=61): match failure.

If I replace the second buf_sz with a literal 10 it all works.

@githwxi
Copy link
Owner

githwxi commented Apr 16, 2015

Thanks for reporting it.

See: https://github.com/githwxi/ATS-Postiats/blob/master/doc/BUGS/bug-2015-04-15.dats

This bug is now fixed. Changes have been uploaded.

@githwxi githwxi closed this as completed Apr 16, 2015
@shlevy
Copy link
Contributor Author

shlevy commented Apr 16, 2015

🍺

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

2 participants