summaryrefslogtreecommitdiff
path: root/src/library/scala/util/Try.scala
diff options
context:
space:
mode:
authorHeather Miller <heather.miller@epfl.ch>2012-08-05 12:38:13 +0200
committerHeather Miller <heather.miller@epfl.ch>2012-08-05 12:38:13 +0200
commitcb6066ee6136d78ceb8c3b5c06cefac998966dd0 (patch)
treedfc17f91d1ad10190b8c1c523c94e8028f029f17 /src/library/scala/util/Try.scala
parent3cb0e784a05db7d0b542cec9bf4c5fbf3772a6cf (diff)
downloadscala-cb6066ee6136d78ceb8c3b5c06cefac998966dd0.tar.gz
scala-cb6066ee6136d78ceb8c3b5c06cefac998966dd0.tar.bz2
scala-cb6066ee6136d78ceb8c3b5c06cefac998966dd0.zip
Temporarily skips failing test due to optimizer bug SI-6188
Also swaps the arguments to method transform on Try, so as to mirror transform on scala.concurrent.Future.
Diffstat (limited to 'src/library/scala/util/Try.scala')
-rw-r--r--src/library/scala/util/Try.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/util/Try.scala b/src/library/scala/util/Try.scala
index 487ddaced3..c834f6d514 100644
--- a/src/library/scala/util/Try.scala
+++ b/src/library/scala/util/Try.scala
@@ -142,7 +142,7 @@ sealed abstract class Try[+T] {
/** Completes this `Try` by applying the function `f` to this if this is of type `Failure`, or conversely, by applying
* `s` if this is a `Success`.
*/
- def transform[U](f: Throwable => Try[U], s: T => Try[U]): Try[U] = this match {
+ def transform[U](s: T => Try[U], f: Throwable => Try[U]): Try[U] = this match {
case Success(v) => s(v)
case Failure(e) => f(e)
}