We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7ff0f34 + c0d50bf commit f3d72ecCopy full SHA for f3d72ec
library/src/scala/Tuple.scala
@@ -272,15 +272,7 @@ object Tuple {
272
type EmptyTuple = EmptyTuple.type
273
274
/** A tuple of 0 elements. */
275
-object EmptyTuple extends Tuple {
276
- override def productArity: Int = 0
277
-
278
- @throws(classOf[IndexOutOfBoundsException])
279
- override def productElement(n: Int): Any =
280
- throw new IndexOutOfBoundsException(n.toString())
281
282
- def canEqual(that: Any): Boolean = this == that
283
+case object EmptyTuple extends Tuple {
284
override def toString(): String = "()"
285
}
286
0 commit comments