-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Minor fix for long form anonymous functions #33961
Conversation
To minimize breakage, I think the right thing here might be to give a clear warning like "this use of :: declares the type of the argument, but in the future may change to declare a return type instead". |
Triage thinks we should run PkgEval on this and see if anybody is using this syntax before making a decision. |
@nanosoldier |
@nanosoldier |
Server crashed. |
Your test job has completed - possible new issues were detected. A full report can be found here. cc @maleadt |
Nice! One thing we find out from PkgEval is that the
where this initially looks like it might be an anonymous function since the signature begins with |
Is something blocking this PR? |
Yes, see my previous comment. This causes errors on previously valid signatures. |
It looks like this pull request is no longer mergeable. If you would still like to make this change, please make a new pull request based on the latest |
Minor fix for #32557. Return type declarations for the long form anonymous functions now return ERROR.
To support for the return type declarations, we might have to change the definition of "function" in AST.