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

Backport "Preventing compilation of a @tailrec method when it does not rewrite, but an inner method does" to LTS #21142

Closed
wants to merge 1 commit into from

Commits on Jul 9, 2024

  1. #20105: Adding a warning to the case where nested named definitions c…

    …ontain non-tail recursive calls.
    
    Code will now compile where a child def calls the parent def in a non-tail position (with the warning).
    Code will no longer compile if all calls to a @tailrec method are in named child methods (as these do not tail recurse).
    
    [Cherry-picked 01ada74]
    Lucy Martin authored and WojciechMazur committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    0d8b6a9 View commit details
    Browse the repository at this point in the history