The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

package Redefined;
use strict;
use Function::Parameters qw(:strict);
use Carp qw/croak/;
method meth1 {}
method meth1 {}
# this one should not trigger a redfined warning
sub meth2 {}
method meth2 {}
# This one shouldn't either
method meth3 {}
{ no warnings 'redefine';
method meth3 {}
}
1;