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

error with parsing ruby 3.0 endless method definition #9523

Closed
ugur-kurnaz opened this issue Feb 17, 2021 · 0 comments · Fixed by #9524
Closed

error with parsing ruby 3.0 endless method definition #9523

ugur-kurnaz opened this issue Feb 17, 2021 · 0 comments · Fixed by #9524
Labels

Comments

@ugur-kurnaz
Copy link

I was trying the code provided by https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/ (concerning ractor with benchmark of tarai function), in visualstudio code and I ended up with an error.

I suppose error comes from the new syntax of def without end.

you'll find the details of rubocop -d in attachment.

regards,
tarai.rb.rubocop.debug.txt

@koic koic added the bug label Feb 17, 2021
koic added a commit to koic/rubocop that referenced this issue Feb 17, 2021
Fixes rubocop#9523.

This PR fixes an error for `Style/TrailingMethodEndStatement`
when endless method definition signature and body are on different lines.
bbatsov pushed a commit that referenced this issue Feb 17, 2021
Fixes #9523.

This PR fixes an error for `Style/TrailingMethodEndStatement`
when endless method definition signature and body are on different lines.
This was referenced Mar 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants