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
Error missing declared signature if where
clause is used in proto
#1746
Comments
The absence of signature comes from the fact that only multi signatures are shown (https://github.com/rakudo/rakudo/blob/master/src/Perl6/Optimizer.nqp#L2178). But the error seems to be related with the fact we are trying to call a dispatcher proto which does not have multis:
|
In addition, using a where clause causes the signatures to be evaluated at runtime. If a multi is specified, the error is a TypeCheck Exception.
|
Tried to implement a fix in PR #1868 |
This looks fixed in rakudo star 2018.06:
|
Commented on the PR.
That's still missing what the declared signature is. |
See Newcomer Guide to Contributing to Core Perl 6 for tips on fixing this Issue
Normally, this message tells you what the declared signature is (in this case,
(Int)
):But if you use a
where
clause and stick it intoproto
, thewith declared signature
part doesn't say what the declared signature is:The text was updated successfully, but these errors were encountered: