Permalink
Browse files

RT #71270, simple case of list comprehension

  • Loading branch information...
1 parent 06bfb6e commit 8b335236a96b8aa21e105a5a7d9ceb9d84e1db5d @moritz moritz committed Feb 3, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 S04-statements/for.t
View
@@ -13,7 +13,7 @@ for statement as possible
=end description
-plan 69;
+plan 70;
## No foreach
# L<S04/The C<for> statement/"no foreach statement any more">
@@ -514,4 +514,11 @@ lives_ok {
is $x, 2, 'Lazy lists interact properly with multi-element for loops';
}
+# RT #71270
+# list comprehension
+{
+ sub f() { for ^1 { } };
+ is ~f(), '', 'empty for-loop returns empty list';
+}
+
# vim: ft=perl6

0 comments on commit 8b33523

Please sign in to comment.