Skip to content

Conversation

HertzDevil
Copy link
Contributor

@HertzDevil HertzDevil commented Jan 2, 2024

Fixes #10397. Fixes #9963.

@HertzDevil HertzDevil added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler:parser labels Jan 2, 2024
@HertzDevil HertzDevil force-pushed the bug/setter-operator branch from 4ab175a to c1e157c Compare January 2, 2024 17:25
@straight-shoota
Copy link
Member

It might be useful to have specs that ensure calling these methods is also possible (parser + semantic). Do you want to add this here?

@HertzDevil HertzDevil changed the title Allow operators ending in = with multiple parameters Allow multiple parameters and blocks for operators ending in = Jan 2, 2024
@HertzDevil
Copy link
Contributor Author

I don't think this has anything to do with semantic specs. But there will be stdlib specs for this soon (delegate to be precise)

@straight-shoota straight-shoota modified the milestone: 1.11.0 Jan 2, 2024
@straight-shoota straight-shoota added this to the 1.12.0 milestone Jan 4, 2024
@straight-shoota straight-shoota added kind:feature topic:lang and removed kind:bug A bug in the code. Does not apply to documentation, specs, etc. labels Jan 4, 2024
@straight-shoota straight-shoota merged commit b56c7d9 into crystal-lang:master Jan 10, 2024
@HertzDevil HertzDevil deleted the bug/setter-operator branch January 11, 2024 11:12
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.

>= and <= considered as setters, allow only one arguments, unlike > and < Can't declare method ==(*args)

2 participants