Skip to content

Commit 825a453

Browse files
BersierKordyjan
authored andcommitted
Update derivation.md
Added missing import [Cherry-picked 1627f05]
1 parent a4064be commit 825a453

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)