Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type of $¢ is Any instead of Cursor #4138

Closed
p6rt opened this issue May 3, 2015 · 4 comments
Closed

Type of $¢ is Any instead of Cursor #4138

p6rt opened this issue May 3, 2015 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented May 3, 2015

Migrated from rt.perl.org#124998 (status was 'resolved')

Searchable as RT124998$

@p6rt
Copy link
Author

p6rt commented Jul 27, 2016

From @coke

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.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jul 27, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jun 21, 2018

From @coke

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

@p6rt p6rt closed this as completed Jun 21, 2018
@p6rt
Copy link
Author

p6rt commented Jun 21, 2018

@coke - Status changed from 'open' to 'resolved'

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant