Skip to content

Commit f563411

Browse files
Merge pull request #5964 from dotty-staging/fix-#5962
Fix #5962: Add regression test
2 parents 4c4d5a1 + c15b184 commit f563411

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/pos/i5962.scala

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import scala.quoted._
2+
import scala.tasty._
3+
4+
class MatchFactory1[T, S[_]] {
5+
def f: Int = 2
6+
}
7+
8+
object MatcherFactory1 {
9+
10+
def impl[T: Type, S[_], M >: MatchFactory1[T, S] <: MatchFactory1[T, S] : Type](self: Expr[M])(implicit refl: Reflection, tpS: Type[S[T]]) =
11+
'{ val a = ${self}; a.f }
12+
13+
}

0 commit comments

Comments
 (0)