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

Don't move a comment between a modifier and return type. #1588

Merged
merged 1 commit into from
Oct 24, 2024

Commits on Oct 24, 2024

  1. Don't move a comment between a modifier and return type.

    When formatting a function, method, getter, or function type, the
    formatter hoists any leading comments out so that they don't force a
    split between the return type and body.
    
    However, it failed to take into account modifiers that may occur before
    the return type but after the comment. If that happened, the comment
    would get moved before the modifiers.
    
    Fix #1585.
    munificent committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    57c9d76 View commit details
    Browse the repository at this point in the history