Skip to content

Commit 9be5a34

Browse files
Merge pull request #15359 from dotty-staging/fix-9891
Add regression tests
2 parents cec9aa3 + b916d93 commit 9be5a34

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/pos-macros/i9891.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)