);
} @{$c->get_roles};
- my (%seen, %method_map);
+ my (%seen, %conflicts, %method_map);
foreach my $method (@all_methods) {
+ next if $conflicts{$method->{name}};
my $seen = $seen{$method->{name}};
if ($seen) {
);
delete $method_map{$method->{name}};
+ $conflicts{$method->{name}} = 1;
next;
}
}