[perl #124998] [BUG] Type of $¢ is Any inste ad of Cursor

[email protected] ("Will Coleda via RT") Thu, 21 Jun 2018 12:36:41 -0700
Newsgroups perl.perl6.compiler
Message-ID <[email protected]>
On Wed, 27 Jul 2016 12:29:11 -0700, coke wrote:
> Here's the test:
> 
> my $c;
> ok 'abc' ~~ /.{ $c = $¢ }/,     'current match state';
> #?rakudo todo 'Type of $¢ is Any instead of Cursor - RT #124998'
> is $c.WHAT, Cursor.WHAT,        'got right type';
> 
> This might be a faulty test, however:
> 
> 19:28 < [Coke]> m: my $c; 'abc' ~~ /.{ say $¢.WHAT }/ ;
> 19:28 < camelia> rakudo-moar f0abe8: OUTPUT«Nil␤»
> 
> If the $¢ assignment in there is Nil, then $c is *going* to default to Any. 

This appears to be fixed; there's a test in roast (which I've re-added the RT # to), closing ticket.
-- 
Will "Coke" Coleda