Use role names for consistency with ToRole
Shawn M Moore [Sun, 31 May 2009 02:06:22 +0000 (22:06 -0400)]
lib/Moose/Meta/Role/Application/RoleSummation.pm

index 74f9c54..8449f0b 100644 (file)
@@ -173,7 +173,7 @@ sub apply_methods {
             if ($seen->{method}->body != $method->{method}->body) {
                 $c->add_conflicted_method(
                     name  => $method->{name},
-                    roles => [$method->{role}, $seen->{role}],
+                    roles => [$method->{role}->name, $seen->{role}->name],
                 );
 
                 delete $method_map{$method->{name}};