-
Notifications
You must be signed in to change notification settings - Fork 14
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
Scalafix for migrating from 2.12 to 2.13 #327
Comments
What's the plan for |
Good question. I think these are fine because we just write their type as the corresponding singleton type without requiring further inference. This rule aims to avoid triggering inference during implicit search, which is thus always ok for objects. Will have to experiment a bit more to convince myself though :) |
What's the deal with "implicit val/def without complete signature"? I have been recently following IntelliJ's advise to add return types for implicit vals, but this produces a quite unfortunate situation, illustrated by the following examples: before
after
etc. May I propose that a type annotation be not required if we call either I think that would strike a good balance between still essentially documenting the type and avoiding Java'ish DRY horror. |
See scala/scala3#2879, where @smarter indicates that:
|
@dwijnand Ok, but that leaves |
Explicit types for implicit vals should only be required for field |
@sjrd thanks for the clarification; I will then petition IntelliJ to rethink their default inspection which indeed produces unneeded verbosity :) |
No need for an over-arching ticket on this anymore. scala-rewrites is a thing (and published!) and we can and will add things when they come up. |
So that we can deprecate the following language features / stdlib members:
The text was updated successfully, but these errors were encountered: