Skip to content

Conversation

@esparta
Copy link
Contributor

@esparta esparta commented Dec 13, 2021

The set method tries to modify instance variables which are not permitted after freeze the object. Instead of use clone we can simply create a new instance since we have all the elements we need.

Added a minimal set of specs for to_range which were missing.

@esparta esparta mentioned this pull request Dec 13, 2021
@ioquatix ioquatix merged commit 77fe1fc into ruby:master Dec 24, 2021
@ioquatix
Copy link
Member

Thanks for this, looks like we could slip this in before cutting 3.1 🥳

@esparta esparta deleted the fix/freeze_to_range branch December 30, 2021 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants