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, jan-olof.hen...@bredband.net wrote: > On Thu, 22 Jun 2017 05:25:08 -0700, c...@zoffix.com wrote: > > A WhateverCode detached map or a &sub undetached map works fine: > > m: ^2 .map: *.say > > rakudo-moar 86e7b2: OUTPUT: «01» > > m: (^2).map: &say > > rakudo-moar 86e7b2: OUTPUT: «01» > > > > 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