Skip to content

Instantly share code, notes, and snippets.

@ranguard
Created September 7, 2016 20:14
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/a1fac0fb6a5211623d7ae872f9ab13b6 to your computer and use it in GitHub Desktop.
Save ranguard/a1fac0fb6a5211623d7ae872f9ab13b6 to your computer and use it in GitHub Desktop.
package Foo::A;
use Moose::Role;
requires 'bar';
1;
package Foo::B;
use Moose::Role;
sub bar { # <---------
return {};
}
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