# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #111652] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=111652 >
<masak> r: sub foo { state $a = 5; state $b = 42; $a++; $b--; say "$a $b" }; foo; foo; foo <p6eval> rakudo a8086d: OUTPUT«6 417 408 39» <masak> r: sub foo { state ($a, $b) = 5, 42; $a++; $b--; say "$a $b" }; foo; foo; foo <p6eval> rakudo a8086d: OUTPUT«6 416 416 41» * masak submits rakudobug <masak> n: sub foo { state ($a, $b) = 5, 42; $a++; $b--; say "$a $b" }; foo; foo; foo <p6eval> niecza v15-4-g1f35f89: OUTPUT«6 417 408 39» Niecza gets this one right; Rakudo gets it wrong.