This is an automatically generated mail to inform you that tests are now
available in t/spec/S04-statements/for.t
commit 906321ace70ba88535ce077b1b5f87478ea291f8
Author: kyle <k...@c213334d-75ef-0310-aa23-eaa082d1ae64>
Date: Sun Aug 16 04:04:31 2009 +0000
[t/spec] Test for RT #65212
git-svn-id: http://svn.pugscode.org/p...@28004
c213334d-75ef-0310-aa23-eaa082d1ae64
diff --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