Skip to content
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

#20145 - bugfix when a return tailrec is called inside a val def. #20652

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

LucySMartin
Copy link

Fixes #20145.

Apologies about the previous PR - I thought I remembered this fix from when I coded it as a part of a prior pr - but I had in fact forgotten.

This one at least passes tests locally.

…l definition, previously this would neither optimise nor fail.
@sjrd sjrd merged commit 56e6f9f into scala:main Jun 20, 2024
24 checks passed
@LucySMartin LucySMartin deleted the tail-rec-value-def branch June 20, 2024 13:07
@Kordyjan Kordyjan added this to the 3.5.1 milestone Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tail recursion from inside value defs
3 participants