Skip to content

Instantly share code, notes, and snippets.

@ranguard
Created September 7, 2016 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ranguard/3f370c8b62cec19047f88b090d8f35bf to your computer and use it in GitHub Desktop.
Save ranguard/3f370c8b62cec19047f88b090d8f35bf to your computer and use it in GitHub Desktop.
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