Skip to content

Instantly share code, notes, and snippets.

@lestrrat
Created May 17, 2009 16:38
Show Gist options
  • Save lestrrat/113049 to your computer and use it in GitHub Desktop.
Save lestrrat/113049 to your computer and use it in GitHub Desktop.
package Role1;
use Moose::Role;
has attr => ( is => 'ro' );
package Role2;
use Moose::Role;
with 'Role1';
has '+attr' => ( isa => 'Int' );
package FooBar;
use Moose;
with 'Role2';
pacakge main;
FooBar->new();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment