Skip to content

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.

@HertzDevil HertzDevil added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler:parser kind:feature and removed kind:bug A bug in the code. Does not apply to documentation, specs, etc. labels Jan 2, 2024
@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
@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