or next;
if ($method_object->isa('Moose::Meta::Role::Method')) {
- next if $method_object->original_package_name eq $role->name;
+ next if $method_object->body == $role->get_method($method)->body;
}
my $class_name = $class->name;
sub foo {}
+
+#-----------------------------------------------------------------------------
+
+## name Collision via same role
+## failures 0
+## cut
+
+package Ur::Role;
+use Moose::Role;
+
+sub foo { die "yawr" }
+
+package Role::Refined;
+use Moose::Role;
+with 'Ur::Role';
+
+package Role::Distinguished;
+use Moose::Role;
+with 'Ur::Role';
+
+package Class;
+use Moose;
+
+with 'Role::Refined';
+with 'Role::Distinguished';
+