We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This edge case results in a parse error
enum class Foo { ; // parse error? fun bar() = Unit }
FYI trying to format this works as expected
enum class Foo { ; }
Although this is a rare edge case, ideally ktfmt should not throw a parse error for code that compiles fine.
The text was updated successfully, but these errors were encountered:
Fix parser error on empty enum with semicolon
0a4aa7d
This fixes facebook#422.
Fix parse error on empty enum with semicolon
8e41984
Fix parse error on empty enum with semicolons
2670e61
c386bb2
9060b6e
Successfully merging a pull request may close this issue.
This edge case results in a parse error
FYI trying to format this works as expected
Although this is a rare edge case, ideally ktfmt should not throw a parse error for code that compiles fine.
The text was updated successfully, but these errors were encountered: