# New Ticket Created by Zoffix Znet # Please include the string: [perl #130404] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=130404 >
zoffix@VirtualBox:~$ perl6 -e 'my int $x = 4; say $x || 2' 1 zoffix@VirtualBox:~$ perl6 --optimize=off -e 'my int $x = 4; say $x || 2' 4 zoffix@VirtualBox:~$ perl6 -v This is Rakudo version 2016.11-182-gea28845 built on MoarVM version 2016.11-41-gd2139b5 implementing Perl 6.c. zoffix@VirtualBox:~$ There's a pretty good chance that the optimizer evaluates the statement and encounters NQP bug involving ||: https://github.com/perl6/nqp/issues/332