summaryrefslogtreecommitdiff
path: root/src/library/scala/Product2.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-06-17 21:23:05 +0000
committerPaul Phillips <paulp@improving.org>2009-06-17 21:23:05 +0000
commite58673295a780ab7e9e2098a907df3466866a300 (patch)
tree42f86877667555d5c91a5cceb1e852190a64dc51 /src/library/scala/Product2.scala
parentcd7e1a17286cde131e93d1cb1b34dfd3e83d9d59 (diff)
downloadscala-e58673295a780ab7e9e2098a907df3466866a300.tar.gz
scala-e58673295a780ab7e9e2098a907df3466866a300.tar.bz2
scala-e58673295a780ab7e9e2098a907df3466866a300.zip
Newly generated Tuple/Product/Function classes ...
Newly generated Tuple/Product/Function classes from new genprod, plus a couple minor tweaks to genprod to keep tests happy.
Diffstat (limited to 'src/library/scala/Product2.scala')
-rw-r--r--src/library/scala/Product2.scala12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/library/scala/Product2.scala b/src/library/scala/Product2.scala
index 6d468ba33a..a2c5ee17ab 100644
--- a/src/library/scala/Product2.scala
+++ b/src/library/scala/Product2.scala
@@ -1,4 +1,3 @@
-
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2009, LAMP/EPFL **
@@ -9,10 +8,11 @@
// $Id$
-// generated by genprod on Wed Apr 23 10:06:16 CEST 2008
+// generated by genprod on Wed Jun 17 14:10:05 PDT 2009
package scala
+
import Predef._
object Product2 {
@@ -20,11 +20,10 @@ object Product2 {
Some(x)
}
-/** Product2 is a cartesian product of 2 components
+/** Product2 is a cartesian product of 2 components.
*
*/
trait Product2[+T1, +T2] extends Product {
-
/**
* The arity of this product.
* @return 2
@@ -44,15 +43,14 @@ trait Product2[+T1, +T2] extends Product {
case 0 => _1
case 1 => _2
case _ => throw new IndexOutOfBoundsException(n.toString())
- }
+ }
/** projection of this product */
def _1: T1
-/** projection of this product */
+ /** projection of this product */
def _2: T2
-
}