From: Dave Rolsky Date: Fri, 27 Mar 2009 01:21:18 +0000 (-0500) Subject: add warning for long-deprecated alias_method method in MM::Role X-Git-Tag: 0.73_01~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=89e6757ae62da021b944b329a8814fbecda51aa8;p=gitmo%2FMoose.git add warning for long-deprecated alias_method method in MM::Role --- diff --git a/lib/Moose/Meta/Role.pm b/lib/Moose/Meta/Role.pm index 57d790a..0111abe 100644 --- a/lib/Moose/Meta/Role.pm +++ b/lib/Moose/Meta/Role.pm @@ -418,6 +418,8 @@ sub get_method_list { } sub alias_method { + warn "The alias_method method is deprecated. Use add_method instead.\n"; + my $self = shift; $self->add_method(@_);