-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mutal recursion #596
Comments
The core generated by
While the function koka/src/Backend/C/FromCore.hs Lines 341 to 348 in 70f5609
There seem to be an eta-contraction between initial core and core which causes the problem as the initial core is:
It seems to be caused by the following optimisation, deleting this snippet allows the program to compile. The bug could be fixed by eta-expanding function definitions when they aren't lambdas. Lines 457 to 467 in 70f5609
|
That was such a strange bug! weird we never ran into it before but it should be fixed now. |
btw. Koka support mutual recursion and does a topological sort. For polymorphic recursion one needs to add explicit type signatures. |
In an attempt to figure out of mutual recursion us supported, with the following input file,
I get the following error with Koka 3.1.2:
The text was updated successfully, but these errors were encountered: