# New Ticket Created by Zoffix Znet
# Please include the string: [perl #128636]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=128636 >
If `no precompilation` is added to A.pm6 , the error goes away.
zoffix@VirtualBox:/tmp/tmp.YwbSHxhVWC$ cat A.pm6
use experimental :cached;
sub foo($x) is export is cached { $x }
zoffix@VirtualBox:/tmp/tmp.YwbSHxhVWC$ perl6 -I. -MA -e 'foo 42'
Cannot invoke this object (REPR: Null; VMNull)
in block at
/home/zoffix/.rakudobrew/moar-nom/install/share/perl6/sources/AAC61C0EC6F88780427830443A057030CAA33846
(experimental) line 10
in any enter at gen/moar/m-Metamodel.nqp line 3963
in block <unit> at -e line 1
The issue appeared in one of these commits:
https://github.com/rakudo/rakudo/compare/2c69ab78bed2d3f622d027e5e5a132ab212f3a77...bc722abe2cd7f9d34060ee6ff71065a00bedcc16
Looking at the implementation of is cached, these two bugs may or may not be
related:
https://rt.perl.org/Ticket/Display.html?id=128476
https://rt.perl.org/Ticket/Display.html?id=107844
--
Cheers,
ZZ | https://twitter.com/zoffix