# New Ticket Created by  Richard Hainsworth 
# Please include the string:  [perl #75234]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75234 >


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:<[~]>
 >

Reply via email to