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.
1 parent 9736c78 commit b889dbfCopy full SHA for b889dbf
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