Skip to content

Commit fa4bca8

Browse files
nicolasstuckibishabosha
authored andcommitted
Add regression tests
Closes scala#9891
1 parent e17d902 commit fa4bca8

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)