[perl #112986] [REPL] error 'Use of uninitialized $_ of type Any in numeric context" throws extra errors <[email protected]>

[email protected] ("Aleks-Daniel Jakimenko-Aleksejev via RT")
Newsgroups perl.perl6.compiler
Message-ID <[email protected]>
🍕 Test in
https://github.com/rakudo/rakudo/commit/4385e3fc0b5272a14c1c507ccf5846684c16453a

On 2017-08-28 13:58:57, [email protected] wrote:
> Currently it says this:
> Use of uninitialized value of type Any in numeric context
> in block <unit> at <unknown file> line 1
>
> As well as complains about sink context in non-repl:
> Useless use of "**" in expression "$_**2" in sink context (line 1)
>
> I see no problem with it. Except that it no longer says which variable
> caused
> the trouble. I guess it is less than awesome, but this part changed
> before
> 2014.01. I can't bisect there and it is irrelevant to this ticket.
>
> I'll mark this as 「testneeded」 in case someone can come up with a test
> for
> this, but otherwise it is a resolved ticket.
> On 2012-11-21 09:53:41, FROGGS.de wrote:
> > thats the expected behaviour, right?
> >
> > rakudo-2012-11$ install/bin/perl6
> > > $_**2;
> > use of uninitialized variable $_ of type Any in numeric context
> > 0
> > >
> >
> >
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.