Created
May 17, 2009 16:38
-
-
Save lestrrat/113049 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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