Skip to content

Fix #5397: Visit local method in Tailrec #5431

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

Merged
merged 1 commit into from
Nov 14, 2018

Conversation

allanrenucci
Copy link
Contributor

If a method is annotated with @tailrec we now report invalid recursive
call within local method. This means we now visit by-name arguments,
closures and lifted trys

@allanrenucci allanrenucci force-pushed the fix-5397 branch 3 times, most recently from c48f7fa to 56ab2f2 Compare November 13, 2018 13:22
@allanrenucci allanrenucci requested a review from sjrd November 13, 2018 13:44
@sjrd sjrd assigned allanrenucci and unassigned sjrd Nov 14, 2018
If a method is annotated with @tailrec we now report invalid recursive
call within local method. This means we now visit by-name arguments,
closures and lifted `try`s
@allanrenucci allanrenucci merged commit 6448998 into scala:master Nov 14, 2018
@allanrenucci allanrenucci deleted the fix-5397 branch November 14, 2018 16:47
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.

3 participants