summaryrefslogtreecommitdiff
path: root/src/library/scala/Product.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-11-07 18:22:51 +0000
committerPaul Phillips <paulp@improving.org>2011-11-07 18:22:51 +0000
commit481096f2c56fbf1b14fff2142917a46668b7c3b2 (patch)
tree5706019d5e00484f5d8ae2abb9a4bcbd9d904026 /src/library/scala/Product.scala
parenta0a045f5c0b5aa6ed02c849c4ab013cfbfd4e24f (diff)
downloadscala-481096f2c56fbf1b14fff2142917a46668b7c3b2.tar.gz
scala-481096f2c56fbf1b14fff2142917a46668b7c3b2.tar.bz2
scala-481096f2c56fbf1b14fff2142917a46668b7c3b2.zip
Next collections commit from Todd Vierling.
Changes to library code outside the collections.
Diffstat (limited to 'src/library/scala/Product.scala')
-rw-r--r--src/library/scala/Product.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/Product.scala b/src/library/scala/Product.scala
index 53a838ee9d..90ae82b6d0 100644
--- a/src/library/scala/Product.scala
+++ b/src/library/scala/Product.scala
@@ -35,7 +35,7 @@ trait Product extends Equals {
/** An iterator over all the elements of this product.
* @return in the default implementation, an `Iterator[Any]`
*/
- def productIterator: Iterator[Any] = new Iterator[Any] {
+ def productIterator: Iterator[Any] = new collection.AbstractIterator[Any] {
private var c: Int = 0
private val cmax = productArity
def hasNext = c < cmax