# New Ticket Created by  Moritz Lenz 
# Please include the string:  [perl #61982]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61982 >


Rakudo r34428

sub example ($x is rw) {
    $x = 3;
    my @a;
    @a.push($x);
    $x = 5;
    say @a[0];
}
example(3);

Output is 5, should be 3.
The problem is the same for s/is rw/is copy/

A test for the "is copy" version is in
t/spec/integration/99problems-31-to-40.t

Cheers,
Moritz

Reply via email to