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

Multi-line Fn supertraits are indented improperly #6127

Open
swooster opened this issue Mar 27, 2024 · 2 comments · May be fixed by #6048
Open

Multi-line Fn supertraits are indented improperly #6127

swooster opened this issue Mar 27, 2024 · 2 comments · May be fixed by #6048

Comments

@swooster
Copy link

Multi-line supertraits appear to be insufficiently indented:

trait Foo:
    Fn(
    ReallyLongTypeName,
    ReallyLongTypeName,
    ReallyLongTypeName,
    ReallyLongTypeName,
) -> ReallyLongTypeName
{
}

I'd prefer the later lines to be indented an extra level:

trait Foo:
    Fn(
        ReallyLongTypeName,
        ReallyLongTypeName,
        ReallyLongTypeName,
        ReallyLongTypeName,
    ) -> ReallyLongTypeName
{
}

(playground example)

Thank you!

@ytmimi
Copy link
Contributor

ytmimi commented Mar 28, 2024

@swooster thanks for the report! You're right the indentation seems off here

@Flowrey
Copy link

Flowrey commented Mar 29, 2024

Hi! Can i give it a try ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants