diff options
Diffstat (limited to 'tests/untried/pos/t5968.scala')
-rw-r--r-- | tests/untried/pos/t5968.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/untried/pos/t5968.scala b/tests/untried/pos/t5968.scala new file mode 100644 index 000000000..0093f84fc --- /dev/null +++ b/tests/untried/pos/t5968.scala @@ -0,0 +1,8 @@ +object X { + def f(e: Either[Int, X.type]) = e match { + case Left(i) => i + case Right(X) => 0 + // SI-5986 spurious exhaustivity warning here + } +} + |