Permalink
Browse files

return an empty list for foobar xx -1

  • Loading branch information...
timo committed Aug 19, 2014
1 parent 18429d5 commit 2204422946b57d8870dfa00fd22e6fe87bf805f4
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/List.pm
View
@@ -639,6 +639,9 @@ multi infix:<xx>(Mu \x, $n) {
my int $size = $n.Int;
my Mu $rpa := nqp::list();
if $size < 0 {
return nqp::p6parcel($rpa, Any);
}
nqp::setelems($rpa, $size);
nqp::setelems($rpa, 0);

0 comments on commit 2204422

Please sign in to comment.