diff options
Diffstat (limited to 'lib/overload.t')
-rw-r--r-- | lib/overload.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/overload.t b/lib/overload.t index 3af969bc69..c83c0ed3a8 100644 --- a/lib/overload.t +++ b/lib/overload.t @@ -2065,11 +2065,11 @@ fresh_perl_is } package NCmp; - use base 'CmpBase'; + use parent '-norequire', 'CmpBase'; use overload '<=>' => 'cmp'; package SCmp; - use base 'CmpBase'; + use parent '-norequire', 'CmpBase'; use overload 'cmp' => 'cmp'; package main; @@ -2133,7 +2133,7 @@ fresh_perl_is ? $nomethod . "=>'nomethod'," : ''; eval qq{ package NuMB$fall$nomethod; - use base qw/NuMB/; + use parent '-norequire', qw/NuMB/; use overload $nomethod_decl fallback => $fall; }; |