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

Enum semicolon error #12

Closed
dsvoronin opened this issue Sep 5, 2016 · 1 comment
Closed

Enum semicolon error #12

dsvoronin opened this issue Sep 5, 2016 · 1 comment

Comments

@dsvoronin
Copy link

dsvoronin commented Sep 5, 2016

ktlint formatter bug for semicolon in enums:

    ONE("network_type_changed"),
    TWO("technical_unexpected_api_error"),
    THREE("technical_unexpected_api_response")  ; << SEMICOLON REMOVED HERE, AND IT BREAKS CODE

    override fun toString(): String = when (id) {
        null -> name.toLowerCase()
        else -> id
    }
@shyiko
Copy link
Collaborator

shyiko commented Sep 6, 2016

Fixed in 0.2.0.

@shyiko shyiko closed this as completed Sep 6, 2016
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

2 participants