From: Tomas Doran Date: Sat, 5 May 2012 19:29:07 +0000 (+0100) Subject: Composing 2 moo roles into a Moose class is broken X-Git-Tag: v0.091003~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7127b94e4cae9f6aed68b7016adc7a2f88bbd9ff;p=gitmo%2FMoo.git Composing 2 moo roles into a Moose class is broken --- diff --git a/xt/moo-roles-into-moose-class.t b/xt/moo-roles-into-moose-class.t new file mode 100644 index 0000000..e7ac1a0 --- /dev/null +++ b/xt/moo-roles-into-moose-class.t @@ -0,0 +1,24 @@ +use strict; +use Test::More; +{ + package Foo; + use Moo::Role; + use namespace::autoclean; +} +{ + package Bar; + use Moo::Role; + use namespace::autoclean; +} +{ + package Bax; + use Moose; + with qw/ + Foo + Bar + /; +} + +ok 1; +done_testing; +