-
Notifications
You must be signed in to change notification settings - Fork 185
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
Make ExplicitResultTypes work with more Scala versions #998
Comments
in 2.13, instead of Serializable, the type found is AnyRef. code example :
|
@mlachkar not sure I follow, you mean that the rule as it's currently written has some bugs only present when ran against scala 2.13 sources? Is that a case of scalacenter/sbt-scalafix#121 (comment) ? |
When I cross compiled this rule to 2.13, this test broke. This rule is not working for all cases that were supported in 2.12. |
Unlike other rules,
ExplicitResultTypes
only works with Scala 2.12.10 at the moment because the rule interfaces directly with the presentation compiler. It would be great if we could add support for Scala 2.13 and 2.11 but doing so would require rethinking how rules are compiled/published/launched.I'm inclined to do the second approach since I like that Scalafix rules can work regardless of the Scala version being fixed. Regardless of the approach we use, I estimate it will require non-trivial work to implement.
The text was updated successfully, but these errors were encountered: