Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LTA error message for nested subsignature in Rakudo #3572

Closed
p6rt opened this issue Oct 29, 2014 · 3 comments
Closed

LTA error message for nested subsignature in Rakudo #3572

p6rt opened this issue Oct 29, 2014 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Oct 29, 2014

Migrated from rt.perl.org#123085 (status was 'resolved')

Searchable as RT123085$

@p6rt
Copy link
Author

p6rt commented Oct 29, 2014

From @masak

<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> ;)

@p6rt
Copy link
Author

p6rt commented May 29, 2017

From @MasterDuke17

Rakudo commit rakudo/rakudo@1152728 gave this better error messages.

Tests added in rakudo/rakudo#1090

@p6rt p6rt closed this as completed May 29, 2017
@p6rt
Copy link
Author

p6rt commented May 29, 2017

@MasterDuke17 - Status changed from 'new' to 'resolved'

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant