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

fix #37890, fix new error checks with varargs #37894

Merged
merged 1 commit into from
Oct 6, 2020
Merged

Conversation

JeffBezanson
Copy link
Sponsor Member

This error check was incorrectly counting all argument expressions, including varargs. If there are no varargs, or if the number of parameters would be wrong independent of the number of splatted values, still give an error during lowering, but otherwise defer to runtime (although you get a different error of course).

fix #37890

@JeffBezanson JeffBezanson added the compiler:lowering Syntax lowering (compiler front end, 2nd stage) label Oct 5, 2020
@JeffBezanson JeffBezanson merged commit c402113 into master Oct 6, 2020
@JeffBezanson JeffBezanson deleted the jb/fix37890 branch October 6, 2020 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:lowering Syntax lowering (compiler front end, 2nd stage)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot splat types into inner constructor
2 participants