Skip to content

Instantly share code, notes, and snippets.

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