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


<masak> "Too few positionals passed; expected 1 to 0 arguments but got
0 in sub-signature" -- that's a somewhat LTA error message...
<vendethiel> :o)
<mauke> masak: what triggers that signature error?
<masak> mauke: something deep inside an errant execution. I didn't
bother to find out, exactly.
<masak> m: sub foo([$head, *@tail]) {}; foo([])
<camelia> rakudo-moar 315ec6: OUTPUT«Too few positionals passed;
expected 1 to 0 arguments but got 0 in sub-signature [...]
<masak> ...but that seems to do it.
* masak submits rakudobug

To be clear, it's less than awesome that the phrase "1 to 0" ever
shows up in this error message. 0 is indeed not in the range 1..0, but
only by virtue of that range being empty, not by virtue of the error
message making much sense.

<masak> m: say 0 ~~ 1..0
<camelia> rakudo-moar 315ec6: OUTPUT«False␤»
<masak> ;)

Reply via email to