Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Trailing comma inserted into empty argument list with comment #1602

Closed
Gama11 opened this issue Aug 22, 2022 · 0 comments · Fixed by #1613
Closed

Trailing comma inserted into empty argument list with comment #1602

Gama11 opened this issue Aug 22, 2022 · 0 comments · Fixed by #1613

Comments

@Gama11
Copy link

Gama11 commented Aug 22, 2022

Ktlint 0.47.0 turns the following:

val foo = setOf<Int>(
    // empty
)

into:

val foo = setOf<Int>(,
    // empty
)

Which is a syntax error (Expecting an argument).

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants