Since Rakudo commit 3754356d8e this fails with X::Syntax::Variable::Initializer:

$ perl6-m -e 'my @foo := 1..3, @foo; .say for @foo[^10]'
===SORRY!=== Error while compiling -e
Cannot use variable @foo in declaration to initialize itself
at -e:1
------> my @foo := 1..3, @⏏foo; .say for @foo[^10]
    expecting any of:
        term

In other words, binding an array to a list containing the array itself does not 
work at all. Therefore I'm closing this ticket as 'resolved'.

Test: https://github.com/perl6/roast/commit/dca1faef23

Reply via email to