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 does not support upper-case fun names #5432

Closed
straight-shoota opened this issue Dec 21, 2017 · 0 comments
Closed

Formatter does not support upper-case fun names #5432

straight-shoota opened this issue Dec 21, 2017 · 0 comments
Milestone

Comments

@straight-shoota
Copy link
Member

Since #4934 fun names can start with an uppercase letter. Compiling works fine but it seems the formatter is not aware of this change.

Example:

# mylib.cr
lib MyLib
  fun Foo()
end
$ crystal tool format mylib.cr
Error: couldn't format 'mylib.cr', please report a bug including the contents of it: https://github.com/crystal-lang/crystal/issues

expecting IDENT, not `CONST, Foo`, at :2:7 (Exception)
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