merged patch: https://github.com/rakudo/rakudo/pull/1111
tests: https://github.com/perl6/roast/pull/291/files
can be closed

On Fri, Apr 8, 2016 at 7:16 PM grond...@yahoo.fr <
perl6-bugs-follo...@perl.org> wrote:

> # New Ticket Created by  grond...@yahoo.fr
> # Please include the string:  [perl #127858]
> # in the subject line of all future correspondence about this issue.
> # <URL: https://rt.perl.org/Ticket/Display.html?id=127858 >
>
>
> $ cat > A.pm6
> unit module A;
>
> constant @a is export = map { (1 +< $_) => 1 }, ^3;
>
> $ PERL6LIB=. perl6 -e 'use A; say @a[1];'
> Cannot invoke this object
>   in block  at /home/grondilu/A.pm6 (A) line 3
>   in block <unit> at -e line 1
>
> $ perl6 -e 'module A { constant @a is export = map { (1 +< $_) => 1 }, ^3;
> }; import A; say @a[1];'
> 2 => 1
>
> $ perl6 --version
> This is Rakudo version 2016.03-88-g600eb53 built on MoarVM version
> 2016.03-84-g4afd7b6
> implementing Perl 6.c.
>

Reply via email to