Deque#dup and #clone return the wrong type if subclassed #9874
Labels
good first issue
This is an issue suited for newcomers to become aquianted with working on the codebase.
kind:bug
topic:stdlib:collection
I searched the 0.35.1 standard library docs and found that
Deque
also suffers from this same issue asArray
(#9753) andHash
(#9754):The remaining types without a covariant
#clone
areRegex
,String
, and value types. They aren't meant to be subclassed soDeque
is all that's left.For
#dup
there is alsoOpenSSL::Digest
, but likewise I believe that class shouldn't be subclassed.The text was updated successfully, but these errors were encountered: