Skip to content

Commit

Permalink
point to working built in scalafix rule
Browse files Browse the repository at this point in the history
  • Loading branch information
johnduffell authored Nov 23, 2023
1 parent a7f7792 commit eb1e8da
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The redesign of [contextual abstractions]({{ site.scala3ref }}/contextual) bring
The type of implicit definitions (`val` or `def`) needs to be given explicitly in Scala 3.
They cannot be inferred anymore.

The Scalafix rule named `ExplicitImplicitTypes` in [ohze/scala-rewrites](https://github.com/ohze/scala-rewrites#fixexplicittypesexplicitimplicittypes) repository can write the missing type annotations automatically.
The Scalafix rule named [ExplicitResultTypes]([https://github.com/ohze/scala-rewrites#fixexplicittypesexplicitimplicittypes](https://scalacenter.github.io/scalafix/docs/rules/ExplicitResultTypes.html)) can write the missing type annotations automatically.

## Implicit Views

Expand Down Expand Up @@ -147,4 +147,4 @@ implicit def lazyBoolFoo(lazyBool: => Boolean): Foo = ???

-true.foo()
+boolFoo(true).foo()
{% endhighlight %}
{% endhighlight %}

0 comments on commit eb1e8da

Please sign in to comment.