Skip Menu |
Report information
Id: 132086
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: vittore.scolari [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Date: Thu, 14 Sep 2017 12:54:28 +0200
From: Vittore Scolari <vittore.scolari [...] gmail.com>
Subject: [BUG] will leave {} variable trait does not compile inside modules
To: rakudobug [...] perl.org
Download (untitled) / with headers
text/plain 306b
The following code works:

$ perl6 -e 'sub subr() { say "a"; my $c will leave { .say } = 0; }; subr'
a
0

The following doesn't:

$ cat A.pm6
sub subr() { say "a"; my $c will leave { .say } = 0; }
$ PERL6LIB=. perl6 -e 'use A'
===SORRY!===
Missing serialize REPR function for REPR MVMContext (BOOTContext)




This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org