Open j-maas opened 7 months ago
In my real code, using alt
instead of oneOf
makes it compile: https://github.com/j-maas/roc-xml-parser/commit/aba23d22376ddf997be94b8e23c584f889b8341f
@j-maas thank you for posting this. The Error in alias analysis
part tells me this is probably a lambda set issue, possibly related to recursive types. I think it would be helpful to also post this to the roc repository, or at least an issue over there that links to this.
It's not something I think I will be able to fix, but I'm glad you have shared a work around.
😃
Thanks for the feedback, will do that when I find the time. 👍
It seems that there is some weird interaction with nested
oneOf
s and expectations. When I run the code below, I get this compiler error:This might be related to https://github.com/lukewilliamboswell/roc-parser/issues/11, but I can't tell from that issue alone. I posted this here, because I'm not sure if this is a compiler bug or if something in this package is causing it (though I'm guessing it might be a compiler bug).
This is minimal reproduction code. You should be able to put it in a file in the root of this repository and run it with
roc test
to see the error.