-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
roc test
: entered unreachable code: no borrow signature for LambdaName
#7509
Comments
Thanks for the detailed error report @phtrivier :) Notes for a future investigator: We have several issues with "no borrow signature for LambdaName" but this is the only one that panics in crates/compiler/mono/src/inc_dec.rs |
Don't know if it's useful: but I'm also running into this after updating rvn to the latest version. The update encompasses changing camelCased standard-library functions to snake_case, updating to the new lambda syntax, and replacing Before the update I was on compiler commit |
Thanks for investigating @jwoudenberg ❤️ @ayazhafiz do you think #7450 was the cause for the issue or just ended up revealing it? |
ended up revealing it
…On Sat, Jan 18, 2025 at 1:26 PM Anton-4 ***@***.***> wrote:
Thanks for investigating @jwoudenberg <https://github.com/jwoudenberg> ❤️
@ayazhafiz <https://github.com/ayazhafiz> do you think #7450
<#7450> was the cause for the issue
or just ended up revealing it?
—
Reply to this email directly, view it on GitHub
<#7509 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE6GL6XHQGPR4VC6TPYUSN32LKMFPAVCNFSM6AAAAABVDQNGSKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOJZHAYTSOBRHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I probably misunderstand the point, but I can confirm it definitely worked before, that is my test suite ran and I've been using the package in projects. Other information that maybe provides a clue or maybe doesn't: In the same commit that introduces the runtime error, there's also a compile-time oddity: I have to explicitly add an annotation to a helper let-function to get code to compile where I didn't before. The type-annotation alone makes the compiler error go away, I don't have to change the implementation. |
I found that by replacing direct recursion with mutual recursion in two places I can work around the problem. Posting here in case it helps anyone else! |
Given two files:
Foo.roc
:main.roc
When running
roc test
:If i replace the expectation with:
Then test is successful:
The text was updated successfully, but these errors were encountered: