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

Owner: Nobody
Requestors: vittore.scolari [at]

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 [...]>
Subject: [BUG] will leave {} variable trait does not compile inside modules
To: rakudobug [...]
Download (untitled) / with headers
text/plain 306b
The following code works:

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

The following doesn't:

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

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

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