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.
EmptyTuple
case object
1 parent c93a237 commit c0d50bfCopy full SHA for c0d50bf
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