diff options
Diffstat (limited to 'tests/patmat/t5968.scala')
-rw-r--r-- | tests/patmat/t5968.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/patmat/t5968.scala b/tests/patmat/t5968.scala new file mode 100644 index 000000000..14cc903c8 --- /dev/null +++ b/tests/patmat/t5968.scala @@ -0,0 +1,7 @@ +object Test { + object X + def f(e: Either[Int, X.type]) = e match { + case Left(i) => i + case Right(X) => 0 + } +}
\ No newline at end of file |