Skip to content

Commit

Permalink
Update derivation.md (#19559)
Browse files Browse the repository at this point in the history
Added missing import
  • Loading branch information
nicolasstucki authored Feb 1, 2024
2 parents 22a9f59 + 1627f05 commit 1fefb8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/_docs/reference/contextual/derivation.md
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,9 @@ Both `eqSum` and `eqProduct` have a by-name parameter `elems`, because the argum
Pulling this all together we have the following complete implementation,

```scala
import scala.collection.AbstractIterable
import scala.compiletime.{erasedValue, error, summonInline}
import scala.deriving.*
import scala.compiletime.{error, erasedValue, summonInline}

inline def summonInstances[T, Elems <: Tuple]: List[Eq[?]] =
inline erasedValue[Elems] match
Expand Down

0 comments on commit 1fefb8e

Please sign in to comment.