Open zaphar opened 2 weeks ago
I note that if I change type MyId = Id(int)
to type MyId = Id(int) | Unused
It works. So I assume that Avalache has issues with sumtypes where there is only one type constructor. The parser allows this just fine though and the run command handles it so I'm not clear where the error is. The quint typechecker, avalache, or the Parser. The docs don't make it super clear.
Hi! Thanks for reporting.
The error arises from a mismatch of what Quint allows and what Apalache expects, so it can be both that Quint is being over-permissive or that Apalache is requiring something weird.
Your hypothesis
So I assume that Avalache has issues with sumtypes where there is only one type constructor.
seems like a good one to me. I'll try to explore more on this direction. Is this | Unused
workaround enough to unblock your work for now?
Yeah, I can work around it fine with that. If I can help with debugging or anything let me know. I like the language so far.
Minimal reproducible example:
Produces the following error when run with
a
quint typecheck
andquint run
all succeed just fine.