-
Notifications
You must be signed in to change notification settings - Fork 167
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
internal error: Backend.C.FromCore.genFunDefSig: not a function #644
Comments
Likely the same issue as #186 |
This is similar but different, and I've run into it recently as well. Thanks for the smallish repro. However, this seems at first glance related to the drop / dup pass adding a dup above a top level function's lambda definition. Not sure the exact root cause, but looking at the output with the |
Okay, I tracked down the root cause:
Desugars to
But the grammar technically disallows returns in match scrutinees, so there is part of the For now you can work around this by doing:
|
PR open with fix for this one. |
Output:
Happens with the
dev
branch and the latest release.The text was updated successfully, but these errors were encountered: