Thanks! Now I don’t get that error, I just 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.
Poking around a bit, it looks like s2exp2hnf is returning a None_vt when only a Some_vt is expected there, inside of a D3Earrinit. Does that mean somehow the type of the size of the array doesn’t have an HNF? The only array initialization in my code is:
var buf = @[byte][buf_sz]()
where I have:
stadef buf_sz = 10
earlier in the file.
OK, so if I replace every instance of buf_sz with 10 it type checks. Is this somehow a bug in stadef? Or am I using it wrong?
Thanks,
Shea
> --
> You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
ats-lang-user...@googlegroups.com.
> To post to this group, send email to
ats-lan...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/ats-lang-users.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/ats-lang-users/c22cae44-a9db-499f-921b-a18ea8372079%40googlegroups.com.