Skip to content
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

Explicit type annotations for implicit definitions #11

Closed
olafurpg opened this issue Sep 26, 2016 · 1 comment
Closed

Explicit type annotations for implicit definitions #11

olafurpg opened this issue Sep 26, 2016 · 1 comment

Comments

@olafurpg
Copy link
Contributor

Dotty requires implicit type annotations for implicit values. This means scalafix can help by rewriting code like this:

// before
implicit val x = 1
// after
implicit val x: Int = 2

To implement this rewrite, we need the scalac inferred types for bodies of Defn.{Val,Def} that contain the implicitmodifier.

@olafurpg
Copy link
Contributor Author

I guess this can be closed now, first semantic rewrite wow :)

stephenjudkins pushed a commit to stephenjudkins/scalafix that referenced this issue Jan 16, 2019
Upgrade to Scalafix v0.6.0-M14
bjaglin pushed a commit to liancheng/scalafix that referenced this issue May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant