Project

General

Profile

Actions

Bug #19448

closed

[Hash] Using Set as default value

Added by bobanj (Boban Jovanoski) almost 2 years ago. Updated almost 2 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-darwin22]
[ruby-core:112477]

Description

When using a hash and set is used as a default value, the keys method for the hash does not return expected values.
A workaround for this is provided in the attachment.


Files

bug.rb (382 Bytes) bug.rb Also contains a workaround bobanj (Boban Jovanoski), 02/17/2023 03:39 PM
Actions

Also available in: Atom PDF

Like0
Like1Like1Like0Like0