# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #125876]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=125876 >
<timotimo> m: my @test; while @test { my $_ = 1 }
<camelia> rakudo-moar d6bf55: OUTPUT«===SORRY!===Cannot find method 'value'»
<timotimo> m: my @test; while @test { $_ = 1 }
<camelia> rakudo-moar d6bf55: ( no output )
<timotimo> so "my $_" is supposed to give a compile-time error there?
<jnthn> timotimo: ooc, is that an error with --optimize=off or so?
<timotimo> it happens in stage parse
<timotimo> so it can't make a difference
<jnthn> timotimo: ah, interesting
<jnthn> timotimo: But yeah, certainly a bug
<timotimo> no problem
<masak> timotimo: want me to rakudobug the `my $_` thing?
<masak> m: while 0 { my $_ }
<camelia> rakudo-moar d6bf55: OUTPUT«===SORRY!===Cannot find method 'value'»
<timotimo> masak: sure, go ahead :)
* masak submits rakudobug
<masak> m: for 0 { my $_ }
<camelia> rakudo-moar d6bf55: OUTPUT«Potential difficulties:
Redeclaration of symbol $_ [...]
<masak> only while loops. innerestin'.
<timotimo> possibly some optimization (not in the optimizer) not being
careful enough