Skip to content

Commit b889dbf

Browse files
committed
add regression test for pattern match on path-dependent type
this was fixed recently (by #16827), but the test case is simpler than the one in the PR. minimized from user code on the Typelevel Discord
1 parent 9736c78 commit b889dbf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/pos/t16827.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// scalac: -Werror
2+
3+
trait Outer[F[_]]:
4+
sealed trait Inner
5+
trait Inner1 extends Inner
6+
def foo(rv: Either[Inner, Int]) =
7+
rv match
8+
case Right(_) =>
9+
case Left(_) =>

0 commit comments

Comments
 (0)