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

Disallow repeated param except in method signature #7399

Merged
merged 1 commit into from
Nov 26, 2018

Conversation

som-snytt
Copy link
Contributor

@som-snytt som-snytt commented Nov 6, 2018

In the old days, eta expansion would preserve
repeatedness of parameters. Instead, disallow
T* except for methods and constructors.

In function types, it should be expressed with
Seq, including for the expected type of an
eta expansion.

Originally at #6107

Fixes scala/bug#8923

In the old days, eta expansion would preserve
repeatedness of parameters. Instead, disallow
`T*` except for methods and constructors.

In function types, it should be expressed with
`Seq`, including for the expected type of an
eta expansion.
@scala-jenkins scala-jenkins added this to the 2.13.0-RC1 milestone Nov 6, 2018
@lrytz lrytz requested a review from adriaanm November 7, 2018 14:02
@adriaanm adriaanm merged commit 357bd85 into scala:2.13.x Nov 26, 2018
@som-snytt som-snytt deleted the issue/repeated-param branch November 26, 2018 16:43
@SethTisue SethTisue added the release-notes worth highlighting in next release notes label Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes worth highlighting in next release notes
Projects
None yet
5 participants