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 707f9cb commit b916d93Copy full SHA for b916d93
tests/pos-macros/i9891.scala
@@ -0,0 +1,7 @@
1
+import scala.quoted._
2
+import scala.deriving.Mirror
3
+def derived[T: Type](using Quotes): Expr[Any] = {
4
+ val ev1: Expr[Mirror.Of[T]] = Expr.summon[Mirror.Of[T]].get
5
+ val ev2: Expr[Mirror.Of[T]] = Expr.summon(using Type.of[Mirror.Of[T]]).get
6
+ '{null}
7
+}
0 commit comments