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
Input:
def string "string" end string = string() string += "-appended" puts string
When run, this prints "string-appended"
After formatting, stree removes the parenthesis:
def string "string" end - string = string() + string = string string += "-appended" puts string
The resultant script now throws an "undefined method" error
test.rb:6:in `<main>': undefined method `+' for nil:NilClass (NoMethodError) string += "-appended" ^
(Admittedly this is very strange code, but it is simplified from a real-world case in Discourse)
The text was updated successfully, but these errors were encountered:
Ahh yeah, I'll fix this.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Input:
When run, this prints "string-appended"
After formatting, stree removes the parenthesis:
The resultant script now throws an "undefined method" error
(Admittedly this is very strange code, but it is simplified from a real-world case in Discourse)
The text was updated successfully, but these errors were encountered: