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

Allow calling #[]= with a block using method syntax #14161

Merged

Conversation

HertzDevil
Copy link
Contributor

Reverts part of #6324. If you can do 1.<=(2) { 3 }, you can do 1.[]=(2) { 3 }.

Does not affect the operator syntax.

Actually defining #[]= with a block parameter requires #14159, ignoring the case where the body yields without an explicit block parameter.

@straight-shoota straight-shoota added this to the 1.11.0 milestone Jan 3, 2024
@straight-shoota straight-shoota removed this from the 1.11.0 milestone Jan 4, 2024
@straight-shoota straight-shoota added this to the 1.12.0 milestone Feb 1, 2024
@straight-shoota straight-shoota merged commit 54f185d into crystal-lang:master Feb 2, 2024
57 checks passed
@HertzDevil HertzDevil deleted the bug/index-set-call-with-block branch February 2, 2024 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants