From: Toby Inkster Date: Thu, 27 Jun 2013 14:24:59 +0000 (+0100) Subject: fix for previous failing test (_concrete_methods_of returns a hashref, not a list... X-Git-Tag: v1.003000~25 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8951a0b6419c4ca25f19323200eabd16fa9bccc6;p=gitmo%2FRole-Tiny.git fix for previous failing test (_concrete_methods_of returns a hashref, not a list of method names) --- diff --git a/lib/Role/Tiny.pm b/lib/Role/Tiny.pm index f908bc2..9ce2caf 100644 --- a/lib/Role/Tiny.pm +++ b/lib/Role/Tiny.pm @@ -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",