projects
/
gitmo/Moo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
exclude union roles and same-role-as-self from metaclass inflation
[gitmo/Moo.git]
/
lib
/
Moo
/
HandleMoose.pm
diff --git
a/lib/Moo/HandleMoose.pm
b/lib/Moo/HandleMoose.pm
index
6540ec2
..
0f87ec9
100644
(file)
--- a/
lib/Moo/HandleMoose.pm
+++ b/
lib/Moo/HandleMoose.pm
@@
-113,7
+113,7
@@
sub inject_real_metaclass_for {
);
}
$meta->add_role(Class::MOP::class_of($_))
- for grep $_ ne $name,
+ for grep !/\|/ && $_ ne $name, # reject Foo|Bar and same-role-as-self
do { no warnings 'once'; keys %{$Role::Tiny::APPLIED_TO{$name}} };
$DID_INJECT{$name} = 1;
$meta;