Closed DerTee closed 2 years ago
Thanks! I'll have a look :)
Fixed in https://github.com/aardappel/lobster/commit/a793841bb7cc3f997b94ad7a3608b394e478f043 (which hopefully fixes many similar bugs, and will make future ones more obvious/fixable).
In general, not all possible combinations of ordering will work with type inference, "define before use" as much as possible avoids errors (if configuration
or context
are changed to have generic parameters, it will still not work). But with this fix it should do a little better.
I get the following error with the code below:
The code:
I'm very unclear about this bug, but it happens reliably for and it's a problem dependent on two things: