Skip Menu |

This queue is for tickets about the MooseX-Declare CPAN distribution.

Report information
The Basics
Id: 45690
Status: resolved
Priority: 0/
Queue: MooseX-Declare

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

Bug Information
Severity: Important
Broken in: 0.20
Fixed in: 0.22

Download (untitled) / with headers
text/plain 574b
Appending a block to an anonymous class definition composed with a role, gives a syntax error. use MooseX::Declare; use 5.010; role Bar { sub baz { say 'Bar::baz called'; } } class Foo with Bar { sub anon { # works class SubFoo with Bar { sub blarg { say 'SubFoo::blarg called'; } } # works my $class1 = class with Bar; # doesn't work and throws syntax error: syntax error at line 18, near "'Bar' sub yarp " my $class2 = class with Bar { sub yarp { say 'anon yarp called' } }; } }

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

Please report any issues with to