Skip to content

Commit 9465d65

Browse files
Add test for #20482
tryNormalize used to not recursively check if tycon of applied type was normalizable, this may be necessary in the case of an applied type dealiasing to a type lambda. Fixes #20482
1 parent 9df3942 commit 9465d65

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/pos/i20482.scala

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
trait WrapperType[A]
2+
3+
case class Foo[A]()
4+
5+
case class Bar[A]()
6+
7+
type FooToBar[D[_]] = [A] =>> D[Unit] match {
8+
case Foo[Unit] => Bar[A]
9+
}
10+
11+
case class Test()
12+
object Test {
13+
implicit val wrapperType: WrapperType[Bar[Test]] = new WrapperType[Bar[Test]] {}
14+
}
15+
16+
val test = summon[WrapperType[FooToBar[Foo][Test]]]

0 commit comments

Comments
 (0)