You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried a few keywords from this list, and the same problem occurs for true and false. Those two and null seem to be the only keywords I can find that are valid expressions by themselves, otherwise "${keyword}" isn't valid code.
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: