Actions
Feature #16838
openEnumerator::ArithmeticSequence missing allocator for #clone and #dup
Feature #16838:
Enumerator::ArithmeticSequence missing allocator for #clone and #dup
Status:
Open
Assignee:
-
Target version:
-
Description
In Ruby 2.5, with an Enumerator:
In Ruby 2.6, with an Enumerator::ArithmeticSequence:
I've gotten around it in 2.6 and 2.7 by checking if an enum is an ArithmeticSequence and reconstituting a new one if so:
Instead of cloning:
I filed this as a bug rather than feature, since it seemed like a breaking change and I wasn't sure if it was intentional. Thank you!
Actions