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
class B {
sub foo(A $a) {}
A.^add_method('bar', method () {
foo(self);
});
}
$ perl6 -v
This is perl6 version 2015.09-289-g6f31121 built on MoarVM version
2015.09-69-g741cb9c
$ perl6 test.p6
===SORRY!=== Error while compiling test.p6
Calling foo(B) will never work with declared signature (A $a)
at test.p6:6
------> ⏏foo(self);
class B {
sub foo(A $a) {}
A.^add_method('bar', method () {
foo(self);
});
}
$ perl6 -v
This is perl6 version 2015.09-289-g6f31121 built on MoarVM version
2015.09-69-g741cb9c
$ perl6 test.p6
===SORRY!=== Error while compiling test.p6
Calling foo(B) will never work with declared signature (A $a)
at test.p6:6
------> ⏏foo(self);
Migrated from rt.perl.org#126301 (status was 'open')
Searchable as RT126301$
The text was updated successfully, but these errors were encountered: