Skip to content

Commit

Permalink
revert, predef doesn't know type "Some"
Browse files Browse the repository at this point in the history
  • Loading branch information
Burak Emir committed Jul 6, 2007
1 parent 2754c44 commit 7f4894c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/library/scala/Predef.scala
Expand Up @@ -105,13 +105,13 @@ object Predef {
type Pair[+A, +B] = Tuple2[A, B]
object Pair {
def apply[A, B](x: A, y: B) = Tuple2(x, y)
def unapply[A, B](x: Tuple2[A, B]): Some[Tuple2[A, B]] = Some(x)
def unapply[A, B](x: Tuple2[A, B]): Option[Tuple2[A, B]] = Some(x)
}

type Triple[+A, +B, +C] = Tuple3[A, B, C]
object Triple {
def apply[A, B, C](x: A, y: B, z: C) = Tuple3(x, y, z)
def unapply[A, B, C](x: Tuple3[A, B, C]): Some[Tuple3[A, B, C]] = Some(x)
def unapply[A, B, C](x: Tuple3[A, B, C]): Option[Tuple3[A, B, C]] = Some(x)
}

class ArrowAssoc[A](x: A) {
Expand Down

0 comments on commit 7f4894c

Please sign in to comment.