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
If you try to provide the implementation of a multi method via a CALL-ME then invocation will give rise to "Cannot invoke object with invocation handler in this context". It is only necessary for the target method to be a multi not the CALL-ME.
This will also afflict multi native subs it seems.
role Zub[::T] {
proto method CALL-ME(|c) { * }
multi method CALL-ME(Mu:D $self) {
}
multi method CALL-ME(Mu:D $self, T $i) {
}
}
multi sub trait_mod:<is> (Method $m, :$foo!) is export {
$m does Zub[Int];
}
class Foo {
proto method bar(|c) { * }
multi method bar() is foo {
}
multi method bar(Int $o) is foo {
}
}
Still present in 2016.06-154-g55c359e built on MoarVM version 2016.06-9-g8fc21d5
zoffix@VirtualBox:/tmp/tmp.g7rJ2YNub7$ perl6 p.pl
Cannot invoke object with invocation handler in this context
in method bar at p.pl line 14
in block <unit> at p.pl line 22
Migrated from rt.perl.org#127901 (status was 'new')
Searchable as RT127901$
The text was updated successfully, but these errors were encountered: