This is the minimal example I can come up with. Not sure if issues belongs here or for the compiler, but I haven't been able to repro with the basic-cli platform.
Thanks for reporting @lorentzlasson!
This should be https://github.com/roc-lang/roc/issues/5701 but we can leave this open to make sure this is also fixed when 5701 is fixed.
When I run this (with latest source or 0.1 release)
I get this
But if I remove the stdout line
or if I inline one of the task (which one doesn't matter)
it compiles.
This is the minimal example I can come up with. Not sure if issues belongs here or for the compiler, but I haven't been able to repro with the basic-cli platform.
I am on ubuntu 22