Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test RT #69204, $foo .= "bar"()
  • Loading branch information
FROGGS committed Oct 3, 2015
1 parent ecb2fb7 commit 5f82bde
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion S03-operators/inplace.t
Expand Up @@ -4,7 +4,7 @@ use Test;

# L<S03/Assignment operators/A op= B>

plan 27;
plan 31;

{
my @a = (1, 2, 3);
Expand Down Expand Up @@ -94,4 +94,14 @@ is ~@b, "a b d e z", "inplace sort";
is $x, True, '.= Bool (value)';
}

# RT #69204
{
my $a = 'oh hai';
my $b = 'uc';
is $a.="uc"(), 'OH HAI', 'quoted method call with .= works with parens';
is $a.="$b"(), 'OH HAI', 'quoted method call (variable) with .= works with parens';
is $a .= "uc"(), 'OH HAI', 'quoted method call with .= works with parens and whitespace';
is $a .= "$b"(), 'OH HAI', 'quoted method call (variable) with .= works with parens and whitespace';
}

# vim: ft=perl6

0 comments on commit 5f82bde

Please sign in to comment.