# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #117773] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=117773 >
<lizmat> more worringly: <lizmat> rn: say KeyBag.new( (a=>"b") )<a> <camelia> rakudo 71ea14, niecza v24-37-gf9c8fc2: OUTPUT«b» <lizmat> but but, shouldn't a keybag only contain uints as values <masak> yes. <lizmat> and complain about "b" being passed as a value? <masak> yes. * masak submits rakudobug The spec says KeyBag defaults to UInt values. <lizmat> "A C<KeyHash> represents a mutable set of values, represented as the keys <lizmat> of a C<Hash>. When asked to behave as a list it ignores its values <lizmat> and returns only C<.keys>. C<KeySet> and C<KeyBag> are derived from <lizmat> this type, but constrain their values to be C<Bool> and C<UInt>, <lizmat> respectively."