On Thu Jun 25 15:43:59 2009, viklund wrote:
> -- code --
> class A {
>     method a(*...@a) {
>         say "A self={self.perl} ar...@a.perl}"
>     }
> }
> 
> class B is A {
>     method a(*...@a) {
>         nextwith("FIRST ARG", "SECOND ARG")}
> }
> 
> B.new.a()
> 
> -- output --
> 
> A self="FIRST ARG" arg=["SECOND ARG"]
> 
> -- what I expected --
> 
> A self=B.new() arg=["FIRST ARG", "SECOND ARG"]
> 
> -- comment --
> 
> If you are supposed to supply self as the first argument to nextwith
> for this to work, I think I should get a "Method not found" error in
> this case.
> 
Yes, it was supposed to give the output you expected, but failed to due
to a bug. Fixed in git 48c1791 and added an example like this as a
regression test too (plus similar one for callwith).

Thanks,

Jonathan

Reply via email to