Skip Menu |
Report information
Id: 131962
Status: resolved
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: smls75 [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



To: Rakudo Bugtracker <rakudobug [...] perl.org>
Date: Sat, 26 Aug 2017 13:09:44 +0200
Subject: [REGRESSION] `Pair.kv`/`.keys`/.`values` dies if either the key or the value is `Mu`
From: Sam S <smls75 [...] gmail.com>
Download (untitled) / with headers
text/plain 760b
➜ say (4 => Mu).kv; Type check failed in binding to parameter 'val2'; expected Any but got Mu (Mu) ➜ say ((Mu) => 4).kv; Type check failed in binding to parameter 'val1'; expected Any but got Mu (Mu) ➜ say ((Mu) => Mu).kv; Type check failed in binding to parameter 'val1'; expected Any but got Mu (Mu) `Pair` methods that are affected: .kv .keys .values `Pair` methods that NOT are affected: .key .value .pairs .antipairs .Str .gist .perl bisectable finds that this was broken two weeks ago: https://gist.github.com/Whateverable/03a10377df0b3e0409eaa69330750868 https://github.com/rakudo/rakudo/commit/30584dac2fe231038c5bea557946a41310e9fd0f
To: "Sam S. (via RT)" <perl6-bugs-followup [...] perl.org>
Date: Sat, 26 Aug 2017 15:16:54 +0200
Subject: Re: [perl #131962] [REGRESSION] `Pair.kv`/`.keys`/.`values` dies if either the key or the value is `Mu`
From: Elizabeth Mattijsen <liz [...] dijkmat.nl>
Download (untitled) / with headers
text/plain 1.1k
Fixed with a5014fd0855545cc083b3590 , tests needed. Show quoted text
> On 26 Aug 2017, at 13:10, Sam S. (via RT) <perl6-bugs-followup@perl.org> wrote: > > # New Ticket Created by Sam S. > # Please include the string: [perl #131962] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=131962 > > > > ➜ say (4 => Mu).kv; > Type check failed in binding to parameter 'val2'; > expected Any but got Mu (Mu) > > ➜ say ((Mu) => 4).kv; > Type check failed in binding to parameter 'val1'; > expected Any but got Mu (Mu) > > ➜ say ((Mu) => Mu).kv; > Type check failed in binding to parameter 'val1'; > expected Any but got Mu (Mu) > > `Pair` methods that are affected: > .kv > .keys > .values > > `Pair` methods that NOT are affected: > .key > .value > .pairs > .antipairs > .Str > .gist > .perl > > bisectable finds that this was broken two weeks ago: > > https://gist.github.com/Whateverable/03a10377df0b3e0409eaa69330750868 > > https://github.com/rakudo/rakudo/commit/30584dac2fe231038c5bea557946a41310e9fd0f
Download (untitled) / with headers
text/plain 1.2k
On Sat, 26 Aug 2017 06:17:15 -0700, elizabeth wrote: Show quoted text
> Fixed with a5014fd0855545cc083b3590 , tests needed. >
> > On 26 Aug 2017, at 13:10, Sam S. (via RT) <perl6-bugs- > > followup@perl.org> wrote: > > > > # New Ticket Created by Sam S. > > # Please include the string: [perl #131962] > > # in the subject line of all future correspondence about this issue. > > # <URL: https://rt.perl.org/Ticket/Display.html?id=131962 > > > > > > > ➜ say (4 => Mu).kv; > > Type check failed in binding to parameter 'val2'; > > expected Any but got Mu (Mu) > > > > ➜ say ((Mu) => 4).kv; > > Type check failed in binding to parameter 'val1'; > > expected Any but got Mu (Mu) > > > > ➜ say ((Mu) => Mu).kv; > > Type check failed in binding to parameter 'val1'; > > expected Any but got Mu (Mu) > > > > `Pair` methods that are affected: > > .kv > > .keys > > .values > > > > `Pair` methods that NOT are affected: > > .key > > .value > > .pairs > > .antipairs > > .Str > > .gist > > .perl > > > > bisectable finds that this was broken two weeks ago: > > > > https://gist.github.com/Whateverable/03a10377df0b3e0409eaa69330750868 > > > > https://github.com/rakudo/rakudo/commit/30584dac2fe231038c5bea557946a41310e9fd0f
Tests added in roast 8fdce37ba, so resolving.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org