[perl #131623] [BUG] Range + detached method + map with &sub = "Cannot find method 'count' on object of type NQPMu" <[email protected]>

[email protected] ("Aleks-Daniel Jakimenko-Aleksejev via RT") Sat, 07 Apr 2018 20:55:56 -0700
Newsgroups perl.perl6.compiler
Message-ID <[email protected]>
A test for this issue was already added in
https://github.com/rakudo/rakudo/commit/f3efe5e6b4a9ee5#diff-2aaee6bee3c5525182362ffdcbea1f2cR14

Closing.

On 2018-03-10 16:40:40, [email protected] wrote:
> On Thu, 22 Jun 2017 05:25:08 -0700, [email protected] wrote:
> > A WhateverCode detached map or a &sub undetached map works fine:
> > m: ^2 .map: *.say
> > rakudo-moar 86e7b2: OUTPUT: «0␤1␤»
> > m: (^2).map: &say
> > rakudo-moar 86e7b2: OUTPUT: «0␤1␤»
> >
> > But explodes if you try to both detache and use the &sub map:
> > m: ^2 .map: &say
> > rakudo-moar 86e7b2: OUTPUT: «===SORRY!===␤Cannot find method
> > 'count' on object of type NQPMu␤»
>
> Fixed with commit
>
https://github.com/rakudo/rakudo/commit/f3efe5e6b4a9ee59f71ca11cb90ef78539be45e3