Skip to content
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

Formatter bug with newline before comma in method call #6513

Closed
wooster0 opened this issue Aug 9, 2018 · 1 comment
Closed

Formatter bug with newline before comma in method call #6513

wooster0 opened this issue Aug 9, 2018 · 1 comment

Comments

@wooster0
Copy link
Contributor

wooster0 commented Aug 9, 2018

Trying to format this:

def method(a, b)
end
method(1
,2)

gives

Error: couldn't format './main.cr', please report a bug including the contents of it: https://github.com/crystal-lang/crystal/issues

expecting ,, not `NEWLINE, `, at :3:9 (Exception)
  from ???
  from ???
  from ???
  from ???
  from ???
  from ???
  from ???
  from ???
  from ???
  from ???
  from ???
  from ???
  from ???
  from ???

@asterite
Copy link
Member

asterite commented Aug 9, 2018

In Ruby that's a syntax error. Maybe in Crystal it should be a syntax error too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants