-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Nothing inferred when class type parameter is missing #3434
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 don't think we should require the type parameter to be specified since in general we do want it to be inferrable, e.g.: class A[T](x: T)
class B extends A(1) Though I guess we could refuse to infer |
Are there cases where inferred |
Inferred |
I am reluctant to change it, as it might have valid uses, and the change would introduce an irregularity. |
Both dotty and scalac infer
B extends A[Nothing]
. Should we require the type parameter to be specified? Or at least emit a warning?The text was updated successfully, but these errors were encountered: