Still reproducible (2017.11,HEAD(e5b660e))
On 2015-08-25 04:37:44, masak wrote:
> <moritz> m: my $x will leave { "say $x" }; $x = 5
> <camelia> rakudo-moar f7cfe9: OUTPUT«===SORRY!=== Error while
> compiling /tmp/HBm06yJTOmVariable '$x' is not declared [...]
> <moritz> huh?
> <moritz> that looks wrong
> <masak> looks like a bug to me.
> <masak> $x is declared at that point.
> <masak> moritz: want me to rakudobug it?
> <moritz> masak: yes please
> * masak does
> <masak> m: my $x will enter { say $x } = 2
> <camelia> rakudo-moar f7cfe9: OUTPUT«===SORRY!=== Error while
> compiling /tmp/qLbm4QEvKzVariable '$x' is not declared [...]
[perl #125899] [BUG] Just-declared variable should be visible inside 'will ' block, but isn't in Rakudo
Aleks-Daniel Jakimenko-Aleksejev via RT Sat, 02 Dec 2017 19:50:35 -0800
