Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[assign.t] two (failing) tests for RT #77142
  • Loading branch information
moritz committed Jan 31, 2011
1 parent 5b5d98a commit 2d2be1c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 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 268;
plan 270;


# tests various assignment styles
Expand Down Expand Up @@ -837,4 +837,19 @@ sub l () { 1, 2 };
is $x, 'c', '...without screwing up ordinary assignment';
}

# RT #77142
#?rakudo todo 'RT 77142'
{
my $cc = 0;
sub called($ignored) {
$cc = 1;
};

dies_ok { called pi = 4 },
'correct precedence between sub call and assignment (1)';
is $cc, 0,
'correct precedence between sub call and assignment (2)';

}

# vim: ft=perl6

0 comments on commit 2d2be1c

Please sign in to comment.