Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add a test for RT #77174 (//=, ||=)
  • Loading branch information
timo committed Feb 28, 2013
1 parent 7bcdd2b commit 4609872
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion S03-operators/assign.t
Expand Up @@ -6,7 +6,7 @@ use Test;
# V
# L<S03/Changes to Perl 5 operators/list assignment operator now parses on the right>

plan 283;
plan 285;


# tests various assignment styles
Expand Down Expand Up @@ -958,4 +958,12 @@ sub l () { 1, 2 };
'Assign to array with the same array on rhs (RT 93972)';
}

# RT #77174
{
my @a //= (3);
is @a.perl, "Array.new()";
my @b ||= (3);
is @b.perl, "Array.new(3)";
}

# vim: ft=perl6

0 comments on commit 4609872

Please sign in to comment.