Permalink
Browse files

test for SI-5585

  • Loading branch information...
xeno-by committed May 7, 2012
1 parent 7cac633 commit 987b2adae329132e32484c586083eaa733d0edcf
Showing with 18 additions and 0 deletions.
  1. +18 −0 test/pending/pos/t5585.scala
@@ -0,0 +1,18 @@
class Result[+A]
case class Success[A](x: A) extends Result[A]
class Apply[A]
object Apply {
def apply[A](f: Int => Result[A]): Apply[A] = new Apply[A]
}
object TestUnit {
def goo : Apply[Option[Int]] = Apply { i =>
val p = i match {
case 1 => Success(Some(1))
case _ => Success(None)
}
}
}

0 comments on commit 987b2ad

Please sign in to comment.