Created
September 7, 2016 20:13
-
-
Save ranguard/3f370c8b62cec19047f88b090d8f35bf to your computer and use it in GitHub Desktop.
This file contains 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 Foo::A; | |
use Moose::Role; | |
requires 'bar'; | |
1; | |
package Foo::B; | |
use Moose::Role; | |
has bar => ( | |
is => 'ro', | |
isa => 'HashRef', | |
); | |
with 'Foo::A'; | |
1; | |
package MAIN; | |
use Moose; | |
with 'Foo::B'; | |
print "ok\n"; | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment