You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.perl.EVAL doesn't round-trip a Bag where any of the keys in the bag
deparses as an identifier. This happens because it's rolling its own
Pair deparsing and runs into autoquoting. This is the same problem that
was seen with Pair.perl in [perl #126890]. The reliable fix would be
for Baggy.perl to construct Pair objects and call .perl on them, so that
the logic to handle this only needs to be in one place (Pair.perl).
Additional: it also gets confused by some Pair objects as keys:
(("a b" => "c") => 2).Bag.perl
("a b" => "c"=>2).Bag
(("a b" => "c") => 2).Bag.perl.EVAL.perl
Type check failed in assignment; expected Int but got Pair (:c(2))
in block <unit> at EVAL_15 line 1
in block <unit> at <unknown file> line 1
Migrated from rt.perl.org#129007 (status was 'new')
Searchable as RT129007$
The text was updated successfully, but these errors were encountered: