Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adjust for glr by returning slip() instead of ().
  • Loading branch information
jdv committed Aug 23, 2015
1 parent 000d49b commit 5b958fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S04-statement-modifiers/if.t
Expand Up @@ -22,7 +22,7 @@ plan 13;
{
my $answer = 1;
my @x = 41, (42 if $answer), 43;
my @y = 41, ($answer ?? 42 !! ()), 43;
my @y = 41, ($answer ?? 42 !! slip()), 43;
my @z = 41, 42, 43;
is @y, @z, "sanity check";
is @x, @y, "if expr on true cond";
Expand All @@ -31,7 +31,7 @@ plan 13;
{
my $answer = 0;
my @x = 41, (42 if $answer), 43;
my @y = 41, ($answer ?? 42 !! ()), 43;
my @y = 41, ($answer ?? 42 !! slip()), 43;
my @z = 41, 43;
is @y, @z, "sanity check";
#?niecza todo "empty list as element not flattened - https://github.com/sorear/niecza/issues/180"
Expand Down

0 comments on commit 5b958fe

Please sign in to comment.