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

Clarify the method definition that receiving a block #966

Closed
wants to merge 7 commits into from

Conversation

@unasuke
Copy link
Contributor

unasuke commented Jan 17, 2020

Proc.new and proc with no block in a method called with a block
is warned from ruby 2.7.

before after
Screenshot from 2020-01-18 03-32-01 Screenshot from 2020-01-18 03-33-03
Proc.new and proc with no block in a method called with a block
is warned from ruby 2.7.

- ruby/ruby@9f1fb0a
- https://bugs.ruby-lang.org/issues/15539
@sferik sferik force-pushed the sferik:master branch 4 times, most recently from 31172bb to 86e2722 Feb 12, 2020
@sferik sferik force-pushed the sferik:master branch from 86e2722 to eb3650b Feb 12, 2020
@sferik
sferik approved these changes Feb 12, 2020
@sferik sferik force-pushed the sferik:master branch from eb3650b to dde79c4 Feb 12, 2020
@sferik sferik closed this Feb 12, 2020
@unasuke unasuke deleted the unasuke:method_with_block branch Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.