fix for previous failing test (_concrete_methods_of returns a hashref, not a list...
Toby Inkster [Thu, 27 Jun 2013 14:24:59 +0000 (15:24 +0100)]
lib/Role/Tiny.pm

index f908bc2..9ce2caf 100644 (file)
@@ -171,7 +171,7 @@ sub apply_roles_to_package {
   return $me->apply_role_to_package($to, $roles[0]) if @roles == 1;
 
   my %conflicts = %{$me->_composite_info_for(@roles)->{conflicts}};
-  delete $conflicts{$_} for $me->_concrete_methods_of($to);
+  delete $conflicts{$_} for keys %{ $me->_concrete_methods_of($to) };
   if (keys %conflicts) {
     my $fail = 
       join "\n",