# New Ticket Created by Moritz Lenz
# Please include the string: [perl #58602]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=58602 >
Rakudo r30787 dies on multi dispatch when subset types are involved:
test file:
subset Even of Int where { $_ % 2 == 0 };
subset Odd of Int where { $_ % 2 == 1 };
multi sub test_subtypes(Even $y){ 'Even' }
multi sub test_subtypes(Odd $y){ 'Odd' }
say test_subtypes(3)
dies with
No applicable methods.
Adding debugging statements to both where blocks reveals that neither of
them is ever called.
I added a few tests for that to t/spec/S12-subset/multi-dispatch.t
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/