Skip Menu |

This queue is for tickets about the Moo CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: ribasushi [...] leporine.io
Cc:
AdminCc:

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



Subject: Staged attributed declaration does not work in roles
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.
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.