Skip to content

Commit

Permalink
Add test for #20482
Browse files Browse the repository at this point in the history
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
  • Loading branch information
EugeneFlesselle committed Jun 11, 2024
1 parent b7aeb9c commit 05831d1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/pos/i20482.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
trait WrapperType[A]

case class Foo[A]()

case class Bar[A]()

type FooToBar[D[_]] = [A] =>> D[Unit] match {
case Foo[Unit] => Bar[A]
}

case class Test()
object Test {
implicit val wrapperType: WrapperType[Bar[Test]] = new WrapperType[Bar[Test]] {}
}

val test = summon[WrapperType[FooToBar[Foo][Test]]]

0 comments on commit 05831d1

Please sign in to comment.