-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Incorrect output for the to_s method of Attribute AST nodes #4098
Labels
kind:bug
A bug in the code. Does not apply to documentation, specs, etc.
status:implemented
topic:compiler
Milestone
Comments
olbat
changed the title
Incorrect output for the to_s method of Attributes AST nodes with multiple named arguments
Incorrect output for the to_s method of Attribute AST nodes
Mar 2, 2017
olbat
added a commit
to olbat/crystal
that referenced
this issue
Mar 2, 2017
Commas are missing in the result of the `to_s` method of Attribute nodes so the output is invalid (i.e. `@[Foo(a: 1b: 2)]`).
I tried to come with a fix #4099, just le me know if I did something wrong. I also noticed that there is very few tests of the output |
@olbat I'm sure more specs are always welcome! |
Done ! |
asterite
added
kind:bug
A bug in the code. Does not apply to documentation, specs, etc.
topic:compiler
labels
Mar 2, 2017
olbat
added a commit
to olbat/crystal
that referenced
this issue
Mar 3, 2017
Commas are missing in the result of the `to_s` method of Attribute nodes so the output is invalid (i.e. `@[Foo(a: 1b: 2)]`).
olbat
added a commit
to olbat/crystal
that referenced
this issue
Mar 3, 2017
Commas are missing in the result of the `to_s` method of Attribute nodes so the output is invalid (i.e. `@[Foo(a: 1b: 2)]`).
asterite
pushed a commit
that referenced
this issue
Mar 3, 2017
Commas are missing in the result of the `to_s` method of Attribute nodes so the output is invalid (i.e. `@[Foo(a: 1b: 2)]`).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
kind:bug
A bug in the code. Does not apply to documentation, specs, etc.
status:implemented
topic:compiler
I was playing around with the Crystal's parser and got this issue:
I think there must be something wrong with the
to_s
method ofAttribute
AST nodes: a comma is missing between the two named arguments ...The text was updated successfully, but these errors were encountered: