Moo::Role needs to name it if Sub::Name is installed, so make it clear
that the return value is deliberate.
Role::Tiny::does_role($proto, $role) or $proto->$existing($role);
};
no warnings 'redefine';
- *{_getglob "${to}::DOES"} = $new_sub;
+ return *{_getglob "${to}::DOES"} = $new_sub;
}
sub does_role {