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

People
Owner: Nobody in particular
Requestors: nperez [...] cpan.org
Cc:
AdminCc:

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



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 test_declare.pl line 18, near "'Bar' sub yarp " my $class2 = class with Bar { sub yarp { say 'anon yarp called' } }; } }