Skip to content

Commit 337a893

Browse files
committed
Fix #5962: Add regression
1 parent 16d37a2 commit 337a893

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/pos/i5962.scala

Lines changed: 13 additions & 0 deletions
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)