-
Notifications
You must be signed in to change notification settings - Fork 509
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
Auto-formatting redundant curly braces in specific string template fails to compile #883
Labels
Comments
I'm wondering if there are any other keywords that can be used in the string template? |
I tried a few keywords from this list, and the same problem occurs for |
Thanks for checking 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
After formatting the following code (which does compile), the result should also compile.
Input (Bug.kt):
ktlint output:
Observed Behavior
Compilation of the formatted code fails with this error:
Steps to Reproduce
ktlint -F Bug.kt
kotlinc Bug.kt
Your Environment
Note: I don't think it's particularly useful to use
${null}
in a string template, I just ran across this while formatting a large project. 😅The text was updated successfully, but these errors were encountered: