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

Multiline type parameter list is formatted incorrectly #1867

Closed
paul-dingemans opened this issue Mar 18, 2023 · 1 comment · Fixed by #1869
Closed

Multiline type parameter list is formatted incorrectly #1867

paul-dingemans opened this issue Mar 18, 2023 · 1 comment · Fixed by #1869
Milestone

Comments

@paul-dingemans
Copy link
Collaborator

Given code below:

fun <
    Foo,
    Bar,
    > foobar()

This is formatted by ktlint rule experimental:type-parameter-list-spacing as follows:

fun <Foo,
    Bar,> foobar()

while it should have been kept unchanged.

@paul-dingemans paul-dingemans added this to the 0.49.0 milestone Mar 18, 2023
@paul-dingemans
Copy link
Collaborator Author

Related to above, the code below:

fun <
    Foo, Bar,
    FooBar,
    > foobar()

should be formatted as:

fun <
    Foo,
    Bar,
    FooBar,
    > foobar()

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 a pull request may close this issue.

1 participant