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
STD.pm expects <ws> before the '->' in a for statement, Rakudo doesn't #955
Comments
From @masak<masak> rakudo: for (1..3)->$n {say $n} |
@jnthn - Status changed from 'new' to 'open' |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S04-statements/for.t commit 906321ace70ba88535ce077b1b5f87478ea291f8 [t/spec] Test for RT #65212 Inline Patchdiff --git a/t/spec/S04-statements/for.t b/t/spec/S04-statements/for.t
index 8160538..69db878 100644
--- a/t/spec/S04-statements/for.t
+++ b/t/spec/S04-statements/for.t
@@ -11,7 +11,7 @@ for statement as possible
=end description
-plan 56;
+plan 57;
## No foreach
# L<S04/The C<for> statement/"no foreach statement any more">
@@ -440,6 +440,12 @@ eval_dies_ok('for(0..5) { }','keyword needs at least one whitespace after it');
is $c, 6, 'infinte for loop ends in time using last';
}
-
+# RT #65212
+{
+ my $parsed = 0;
+ eval '$parsed = 1; for (1..3)->$n { last }';
+ #?rakudo todo 'RT #65212'
+ ok ! $parsed, 'for (1..3)->$n fails to parse';
+}
# vim: ft=perl6 |
From @moritzfixed in e54dc62b90a281b1223243dd64f4f77456aaf969. |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#65212 (status was 'resolved')
Searchable as RT65212$
The text was updated successfully, but these errors were encountered: