You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think most people running into this will be using kind-projector - would be be out of scope for this project to have an option of using kind-projector syntax for type lambdas?
I think most people running into this will be using kind-projector
scalacOptions are exposed to the rule implementation, so i believe it's possible to implement a decent heuristic to know whether kind-projector is available in the project.
would be be out of scope for this project to have an option of using kind-projector syntax for type lambdas?
Provided the potential heuristic mentioned above works, I am not sure a flag (no matter if it's opt-in or opt-out) is even necessary. When a partially-applied type is detected, we would either use kind-projector, or fallback to the anonymous type projection.
step
project/build.properties
sbt.version=1.3.10
project/scalafix.sbt
build.sbt
Main.scala
run
sbt scalafixEnable "scalafix ExplicitResultTypes" compile
result
The text was updated successfully, but these errors were encountered: