projects
/
gitmo/Mouse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Some simplification of the inlined type check
[gitmo/Mouse.git]
/
lib
/
Mouse
/
Meta
/
Role.pm
diff --git
a/lib/Mouse/Meta/Role.pm
b/lib/Mouse/Meta/Role.pm
index
870b69d
..
9b4aec5
100644
(file)
--- a/
lib/Mouse/Meta/Role.pm
+++ b/
lib/Mouse/Meta/Role.pm
@@
-51,6
+51,7
@@
sub apply {
my $pkg = $class->name;
for my $name ($self->get_attribute_list) {
+ next if $class->has_attribute($name);
my $spec = $self->get_attribute($name);
Mouse::Meta::Attribute->create($pkg, $name, %$spec);
}