We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9736c78 + b889dbf commit 57b172eCopy full SHA for 57b172e
tests/pos/t16827.scala
@@ -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