develooper Front page | perl.perl6.compiler | Postings from June 2018

From:
Will Coleda via RT
Date:
June 21, 2018 19:36
Subject:

Message ID:
rt-4.0.24-17324-1529609800-445.124998-15-0@perl.org
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



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About