-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Class and method type parameters named _ no longer supported #235
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
Comments
I would argue this should be forbidden. It's a common mistake to confuse type application and parameterized type definition. E.g. I have seen many times people write
and then wonder what goes wrong. Allowing an underscore for type parameter definition can only make this worse. The existing occurrences can be handled by a rewriting tool that inserts fresh identifiers for wildcards in type parameter (not type argument!) position. Assigning to Samuel. |
I had anticipated this decision and already implemented this feature some days ago ;-) |
Cool! Looking forward to the PR. |
Closed because this is as intended. |
Backport "Align erasure of `Array[Nothing]` and `Array[Null]` with Scala 2" to 3.3 LTS
Intentional? It is arguably poor style, but should probably be deprecated before removal.
The text was updated successfully, but these errors were encountered: