summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library/scala/List.scala2
-rw-r--r--src/library/scala/Seq.scala2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/List.scala b/src/library/scala/List.scala
index b059fb08a8..641accec7a 100644
--- a/src/library/scala/List.scala
+++ b/src/library/scala/List.scala
@@ -31,7 +31,7 @@ object List {
/** for unapply matching
*/
- def unapplySeq[A](x: List[A]): Option[List[A]] = Some(x)
+ def unapplySeq[A](x: List[A]): Some[List[A]] = Some(x)
/** Create a sorted list of all integers in a range.
*
diff --git a/src/library/scala/Seq.scala b/src/library/scala/Seq.scala
index f46517c9e4..60b1488cde 100644
--- a/src/library/scala/Seq.scala
+++ b/src/library/scala/Seq.scala
@@ -28,7 +28,7 @@ object Seq {
* @param x the selector value
* @return sequence wrapped in an option, if this is a Seq, otherwise none
*/
- def unapplySeq[A](x: Seq[A]): Option[Seq[A]] = Some(x)
+ def unapplySeq[A](x: Seq[A]): Some[Seq[A]] = Some(x)
/** Builds a singleton sequence.
*