On Thu May 20 22:07:16 2010, richardh wrote:
> On its own, class B executes as expectedly:
> 
> class B {method n { return [~] gather for ^4 {.say;take 'b'}}};my B 
> $x.=new; say $x.n
> 0
> 1
> 2
> 3
> bbbb
> 
> When another class using reduction ~ is in front of it, even if it is 
> not executed, B fails.
> 
>  > class A {method m { return [~] gather for ^3 {take 'a'}}};class B 
> {method n { return [~] gather for ^4 {.say;take 'b'}}};my B $x.=new; say 
> $x.n
> Could not find sub &prefix:<[~]>
>  >
> 

Fixed now:

> class A {method m { return [~] gather for ^3 {take 'a'}}}; class B 
{method n { return [~] gather for ^4 {.say;take 'b'}}};my B $x.=new; say
$x.n
0
1
2
3
bbbb

Given to moritz++ for spectest coverage.

Thanks,

Jonathan

Reply via email to