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


20:11 <@moritz_> rakudo: sub a { state $x //= 3; $x++; say $x }; a(); a()
20:12 < p6eval> rakudo 6c43f9: OUTPUT«4␤4␤»

Although that's better written as 'state $x = 3', it should IMHO give
the result 4\n5\n, not 4\n4\n

Cheers,
Moritz

Reply via email to