# New Ticket Created by Zoffix Znet # Please include the string: [perl #129812] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=129812 >
This code shows the bug: zoffix@leliana:~$ perl6 -e 'm: multi foo ($) {"right" }; multi foo ($ is rw) {"wrong"}; say foo "42"' wrong And if we turn off the optimizer, we get the right candidate called (same would happen if we add more complex sub bodies, so possibly the sub gets inlined): zoffix@leliana:~$ perl6 --optimize=off -e 'm: multi foo ($) {"right" }; multi foo ($ is rw) {"wrong"}; say foo "42"' right