On Mon Jan 18 21:22:44 2016, lloyd.fo...@gmail.com wrote:
> This bug just hit me :\. It should go away with 'no precompilation'.
> 
> I believe it's closely related to:
> 
> https://rt.perl.org/Public/Bug/Display.html?id=125634
> 
> On Tue, Dec 8, 2015 at 2:43 AM Zoffix Znet <perl6-bugs-follo...@perl.org>
> wrote:
> 
> > # New Ticket Created by  Zoffix Znet
> > # Please include the string:  [perl #126818]
> > # in the subject line of all future correspondence about this issue.
> > # <URL: https://rt.perl.org/Ticket/Display.html?id=126818 >
> >
> >
> > Steps to reproduce:
> > #############################################
> > $ cat > Foo.pm;
> > unit module Foo;
> > our sub foo () is cached { 42 }
> > $ perl6 -I. -MFoo -e 'say Foo::foo'
> > getlex: outer index out of range
> >   in any enter at gen/moar/m-Metamodel.nqp:3763
> >   in block <unit> at -e:1
> > #############################################
> >
> > The problem goes away if "is cached" trait is removed.
> >

Have to add "use experimental :cached" to Foo.pm to get it to compile these 
days. Then the example dies with:

$ perl6 -I. -MFoo -e 'no precompilation; say Foo::foo'
Cannot invoke this object (REPR: Null; VMNull)
  in block  at 
/Users/coke/.rakudobrew/moar-2016.07.1/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 bug goes away when adding "no precompilation;" to Foo.pm

-- 
Will "Coke" Coleda

Reply via email to