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

$_ contains Nil at the start of the program, should contain Any in Rakudo #3579

Closed
p6rt opened this issue Nov 11, 2014 · 3 comments
Closed
Labels

Comments

@p6rt
Copy link

p6rt commented Nov 11, 2014

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

Searchable as RT123175$

@p6rt
Copy link
Author

p6rt commented Nov 11, 2014

From @masak

<TimToady> m​: .say
<camelia> rakudo-moar 41fe4f​: OUTPUT«Nil␤»
<TimToady> that's not right
* masak submits rakudobug
<TimToady> m​: say $_.WHAT
<camelia> rakudo-moar 41fe4f​: OUTPUT«Nil␤»
<TimToady> should blow up on of those ways
<jnthn> Huh, I thought $_ was initialized to Any?
<TimToady> now *that* is a bad occurence of Nil
<TimToady> I dont know when it changed
<jnthn> Me either.
<masak> just to be clear for the bug report, what should `.say` do?
<masak> and what should `say $_.WHAT` do?
<TimToady> probably print (Mu)
<jnthn> Well, (Any) if it's like any other normal Scalar
<jnthn> (Type-constraint is Mu, default value is Any)
<TimToady> or arguably that, yes
<masak> ok, so the whole problem is that $_ contains Nil, not Any?
<masak> ok.

@p6rt
Copy link
Author

p6rt commented Apr 16, 2015

From @FROGGS

Fixed by lizmat++.

Patch​: rakudo/rakudo@9862a14
Tests​: Raku/roast@4499063

@p6rt p6rt closed this as completed Apr 16, 2015
@p6rt
Copy link
Author

p6rt commented Apr 16, 2015

@FROGGS - Status changed from 'new' 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