# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #125483]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=125483 >


<masak> disambiguating performs a narrowness analysis.
<masak> only things to the left of the ;; participate in it.
<jnthn> m: multi a (;; Any $b) { say "one" }; multi a (;; Int $a) {
say "two" }; a(42)
<camelia> rakudo-moar 2bafa9: OUTPUT«two␤»
<jnthn> I...think that one is a bug
<jnthn> We probably mis-handled initial ;;
<jnthn> That should be ambiguous
<masak> unless some other tiebreaking thing kicks in.
<jnthn> It shouldn't, I think we just don't handle initial ;; properly
<masak> m: multi a ($b) { say "one" }; multi a ($a) { say "two" }; a(42)
<camelia> rakudo-moar 2bafa9: OUTPUT«Ambiguous call to 'a'; these
signatures all match:␤:(Any $b)␤:(Any $a)␤ [...]
<masak> that's the behavior I expect.
<jnthn> Right, same
* masak submits rakudobug

Reply via email to