We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd9e0f7 commit 5e7bfb2Copy full SHA for 5e7bfb2
docs/_docs/reference/contextual/derivation-macro.md
@@ -160,9 +160,8 @@ object Eq:
160
case _ => '{ summonInline[Eq[Elem]] }
161
162
def deriveRec[T: Type, Elem: Type](using Quotes): Expr[Eq[Elem]] =
163
- import quotes.reflect.*
164
Type.of[T] match
165
- case '[Elem] => report.errorAndAbort("infinite recursive derivation")
+ case '[Elem] => '{ error("infinite recursive derivation") }
166
case _ => derivedMacro[Elem] // recursive derivation
167
168
inline def derived[T]: Eq[T] = ${ derivedMacro[T] }
0 commit comments