File tree 1 file changed +2
-2
lines changed
docs/docs/reference/contextual
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ from the signature. The body of the `derived` method is shown below:
44
44
given derived [T : Type ](using qctx : QuoteContext ) as Expr [Eq [T ]] = {
45
45
import qctx .reflect ._
46
46
47
- val ev : Expr [Mirror .Of [T ]] = Expr .summon( using Type .of [Mirror .Of [T ]]) .get
47
+ val ev : Expr [Mirror .Of [T ]] = Expr .summon[Mirror .Of [T ]].get
48
48
49
49
ev match {
50
50
case ' { $m : Mirror .ProductOf [T ] { type MirroredElemTypes = elementTypes }} =>
@@ -179,7 +179,7 @@ object Eq {
179
179
given derived [T : Type ](using qctx : QuoteContext ) as Expr [Eq [T ]] = {
180
180
import qctx .reflect ._
181
181
182
- val ev : Expr [Mirror .Of [T ]] = Expr .summon( using Type .of [Mirror .Of [T ]]) .get
182
+ val ev : Expr [Mirror .Of [T ]] = Expr .summon[Mirror .Of [T ]].get
183
183
184
184
ev match {
185
185
case ' { $m : Mirror .ProductOf [T ] { type MirroredElemTypes = elementTypes }} =>
You can’t perform that action at this time.
0 commit comments