From c5badad29946e07fbf3bcfea33ce1c54ebde5bfe Mon Sep 17 00:00:00 2001 From: Chris Kipp Date: Fri, 12 May 2023 13:32:29 +0200 Subject: [PATCH] test: add in a regression test for #9361 Closes #9361 --- tests/pos/i9361.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/pos/i9361.scala diff --git a/tests/pos/i9361.scala b/tests/pos/i9361.scala new file mode 100644 index 000000000000..18efd203d885 --- /dev/null +++ b/tests/pos/i9361.scala @@ -0,0 +1,9 @@ +// https://github.com/lampepfl/dotty/issues/9361 + +import scala.quoted._ + +trait CPM[F[_]] + +def matchTerm(t: Expr[Any])(using qctx: Quotes): Unit = + t match + case '{ ??? : CPM[m2] } => ???