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 expressions transformed to single line inside comment #1057

Closed
joejoejoew opened this issue Jan 14, 2021 · 0 comments · Fixed by #1058
Closed

multiline expressions transformed to single line inside comment #1057

joejoejoew opened this issue Jan 14, 2021 · 0 comments · Fixed by #1058
Labels
Milestone

Comments

@joejoejoew
Copy link

Expected Behavior

var x // check it out
: String = "hi"

should be transformed to

var x: String = "hi" // check it out

Observed Behavior

var x // check it out
: String = "hi"

outputs to

var x // check it out: String = "hi"

Your Environment

  • Version of ktlint used: 0.40.0
  • Name and version: custom gradle task and command line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants