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

negative number condition in when block formatted incorrectly #160

Closed
yshrsmz opened this issue Feb 27, 2018 · 3 comments
Closed

negative number condition in when block formatted incorrectly #160

yshrsmz opened this issue Feb 27, 2018 · 3 comments

Comments

@yshrsmz
Copy link

yshrsmz commented Feb 27, 2018

since 0.16.0

before

when (foo){
  0 -> {
  }
  1 -> {
  }
  -1 -> {
  }
}

after

when (foo){
  0 -> {
  }
  1 -> {
  } -
  1 -> {
  }
}
@shyiko
Copy link
Collaborator

shyiko commented Feb 27, 2018

Thank you for the ticket. Fixed in 0.16.1. It should become available through Maven Central within 25 minutes.

@shyiko shyiko closed this as completed Feb 27, 2018
@Tolriq
Copy link

Tolriq commented Feb 28, 2018

@shyiko
Tested with 0.16.1 now it produces:

catch (e: MalformedURLException) { -
                100
            }

@shyiko
Copy link
Collaborator

shyiko commented Feb 28, 2018

Thanks for the heads up, @Tolriq. Fixed in 0.17.0 (Maven Central sync might take up to 25 minutes).

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

No branches or pull requests

3 participants