You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BEGIN { ::?CLASS.^add_method('foo', ::?CLASS.^method_table<four>) };
attempting to use the package gives the following compile-time error:
$ perl --version
This is Rakudo version 2017.03-123-gcb27bce built on MoarVM version
2017.03-87-g5d73bf4
implementing Perl 6.c.
$ perl6 -MRedefErr
===SORRY!=== Error while compiling
/home/trey/src/HandlesBug/lib/RedefErr.pm6 (RedefErr)
An exception occurred while evaluating a BEGIN
at /home/trey/src/HandlesBug/lib/RedefErr.pm6 (RedefErr):8
Exception details:
===SORRY!=== Error while compiling
Package 'RedefErr' already has a method 'foo' (did you mean to
declare a multi-method?)
at :
$
Note the message completes with at :.
It should give a more useful error message about where the redefinition
actually occurred.
Migrated from rt.perl.org#131262 (status was 'new')
Searchable as RT131262$
The text was updated successfully, but these errors were encountered: