Allow a conflicting method to be excluded
Dave Rolsky [Fri, 30 Dec 2011 20:36:52 +0000 (14:36 -0600)]
lib/Moose/Meta/Role/Application/ToClass.pm

index 822d1e5..ff64c71 100644 (file)
@@ -61,6 +61,8 @@ sub check_required_methods {
         my $required_method_name = $required_method->name;
 
         if (!$class->find_method_by_name($required_method_name)) {
+            next if $self->is_method_excluded($required_method_name)
+                && $required_method->isa('Moose::Meta::Role::Method::Conflicting');
 
             next if $self->is_aliased_method($required_method_name);