summaryrefslogtreecommitdiff
path: root/src/library/scala/Product1.scala
diff options
context:
space:
mode:
authorGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-04-16 14:45:25 +0000
committerGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-04-16 14:45:25 +0000
commit92ec9e276b481844860a07f1e9e64dff2c4ce7f8 (patch)
tree7930a55bb4868ab45f98f80d0bdf57accf3f9e39 /src/library/scala/Product1.scala
parent374b34db53f480d51507a554abfe029ee20d1c2b (diff)
downloadscala-92ec9e276b481844860a07f1e9e64dff2c4ce7f8.tar.gz
scala-92ec9e276b481844860a07f1e9e64dff2c4ce7f8.tar.bz2
scala-92ec9e276b481844860a07f1e9e64dff2c4ce7f8.zip
Improvements to genprod
Added uncurry to Function2, swap to Tuple2.
Diffstat (limited to 'src/library/scala/Product1.scala')
-rw-r--r--src/library/scala/Product1.scala8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/library/scala/Product1.scala b/src/library/scala/Product1.scala
index 455a3cba12..3fa9e45d4c 100644
--- a/src/library/scala/Product1.scala
+++ b/src/library/scala/Product1.scala
@@ -1,7 +1,7 @@
/* __ *\
** ________ ___ / / ___ Scala API **
-** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL **
+** / __/ __// _ | / / / _ | (c) 2002-2008, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
@@ -9,7 +9,7 @@
// $Id$
-// generated by genprod on Thu Apr 19 18:52:00 CEST 2007
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008
package scala
@@ -21,6 +21,7 @@ object Product1 {
}
/** Product1 is a cartesian product of 1 components
+ *
*/
trait Product1[+T1] extends Product {
@@ -38,6 +39,7 @@ trait Product1[+T1] extends Product {
* @return same as _(n+1)
* @throws IndexOutOfBoundsException
*/
+ @throws(classOf[IndexOutOfBoundsException])
override def productElement(n: Int) = n match {
case 0 => _1
case _ => throw new IndexOutOfBoundsException(n.toString())
@@ -47,4 +49,6 @@ trait Product1[+T1] extends Product {
def _1: T1
+
+
}