Skip to content

Fix #5328: Disallow repeated type application #5634

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

Merged
merged 3 commits into from
Dec 17, 2018

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Dec 17, 2018

No description provided.

smarter and others added 2 commits December 17, 2018 15:15
After typer we can get two consecutive type argument sections. If the first
section consists of named parameters that leave out some parameter bindings they
are supplied in the second section. I considered merging the two type parameter
sections, but that would complicate too many other things.

The current scheme is still unambiguous if we consider types. I.e. two consecutive
argument sections match a single formal parameter section if the first section
is named and the length of both argument sections together matches the number
of formal parameters.

Also, fix tests.
@odersky odersky merged commit 6b33da7 into scala:master Dec 17, 2018
@allanrenucci allanrenucci deleted the fix-#5328 branch December 17, 2018 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants