summaryrefslogblamecommitdiff
path: root/test/files/pos/t5968.scala
blob: 0093f84fc0bd3d6d35d326b817ce00312a4e2cc8 (plain) (tree)
1
2
3
4
5
6
7
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
  }
}