Skip Menu |

This queue is for tickets about the Moo CPAN distribution.

Report information
The Basics
Id: 118953
Status: open
Priority: 0/
Queue: Moo

Owner: Nobody in particular
Requestors: ribasushi [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: Staged attributed declaration does not work in roles
Download (untitled) / with headers
text/plain 358b
Given this works: perl -e ' use Moo; has foo => is => "lazy"; has "+foo" => default => 42; warn __PACKAGE__->new->foo ' it is surprising that this *doesn't*: perl -e ' { package SomeRole; use Moo::Role; has foo => is => "lazy"; has "+foo" => default => 42; } use Moo; with "SomeRole"; warn __PACKAGE__->new->foo '
Fixed in git.
Download (untitled) / with headers
text/plain 160b
I've reverted the change I made to fix this, as it would lead to backwards compatibility issues. I'm working on a proper fix, but it will take additional time.

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

Please report any issues with to