Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tailcalls is more selective when reporting self-recursion #10723

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

Draft
wants to merge 2 commits into
base: 2.13.x
Choose a base branch
from

Conversation

som-snytt
Copy link
Contributor

Now that Seth has had a taste of Warsaw, he won't want to review old Scala 2 PRs any more.

Fixes scala/bug#4649

@scala-jenkins scala-jenkins added this to the 2.13.15 milestone Mar 22, 2024
@som-snytt som-snytt marked this pull request as draft March 22, 2024 21:30
@som-snytt som-snytt force-pushed the issue/4649-tailrec-byname branch 2 times, most recently from ece451c to 5ecfa88 Compare March 23, 2024 18:58
@som-snytt som-snytt marked this pull request as ready for review March 23, 2024 20:05
@som-snytt som-snytt force-pushed the issue/4649-tailrec-byname branch from 5ecfa88 to a914532 Compare March 26, 2024 02:47
@som-snytt

This comment was marked as resolved.

@som-snytt
Copy link
Contributor Author

Instead of a -W, how about @notailrec to indicate "I did not intend this expression as a tail call and I know what I'm doing."

Sentiment on the dotty ticket is against diluting @tailrec.

@som-snytt som-snytt marked this pull request as draft March 28, 2024 00:35
@som-snytt
Copy link
Contributor Author

I'll rework this to align with Dotty.

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.

Possible regression in 2.9: @tailrec annotated method rejected by scalac
3 participants