You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<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.
Migrated from rt.perl.org#123085 (status was 'resolved')
Searchable as RT123085$
The text was updated successfully, but these errors were encountered: