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

Using a block in an incomplete for loop body results in LTA error #5677

Closed
p6rt opened this issue Sep 17, 2016 · 2 comments
Closed

Using a block in an incomplete for loop body results in LTA error #5677

p6rt opened this issue Sep 17, 2016 · 2 comments

Comments

@p6rt
Copy link

p6rt commented Sep 17, 2016

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

Searchable as RT129290$

@p6rt
Copy link
Author

p6rt commented Sep 17, 2016

From @hoelzro

For example​:

use v6;

for ^26 { my $p = -> {};

===SORRY!===
Expression needs parens to avoid gobbling block
at /home/rob/projects/rakudo/test.pl​:3
------> for ^26 { my $p = -> {}⏏;
Missing block (apparently claimed by expression)
at /home/rob/projects/rakudo/test.pl​:3
------> for ^26 ⏏{ my $p = -> {};

The for loop's block is not being gobbled; this is just the result of $*BORG being set to a weird state during a parse.

@p6rt
Copy link
Author

p6rt commented Sep 17, 2016

@hoelzro - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Sep 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant