aboutsummaryrefslogblamecommitdiff
path: root/tests/patmat/t5968.scala
blob: 14cc903c8033eb0bb26be46710ee18d4bb911fd1 (plain) (tree)
1
2
3
4
5
6
7






                                           
object Test {
  object X
  def f(e: Either[Int, X.type]) = e match {
    case Left(i) => i
    case Right(X) => 0
  }
}