Skip to content

Commit 1fefb8e

Browse files
Update derivation.md (#19559)
Added missing import
2 parents 22a9f59 + 1627f05 commit 1fefb8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/_docs/reference/contextual/derivation.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,9 @@ Both `eqSum` and `eqProduct` have a by-name parameter `elems`, because the argum
396396
Pulling this all together we have the following complete implementation,
397397

398398
```scala
399+
import scala.collection.AbstractIterable
400+
import scala.compiletime.{erasedValue, error, summonInline}
399401
import scala.deriving.*
400-
import scala.compiletime.{error, erasedValue, summonInline}
401402

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

0 commit comments

Comments
 (0)