On Wed, 05 Oct 2016 14:23:57 -0700, c...@zoffix.com wrote: > > 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 >
It would seem that this bug was fixed with https://github.com/rakudo/rakudo/commit/f8b3469439108fead043bab2bd27bde4bac50dca Test(s) needed