summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKota Mizushima <mizukota@gmail.com>2016-03-17 18:03:07 +0900
committerKota Mizushima <mizukota@gmail.com>2016-03-24 01:45:30 +0900
commit7479a44c51f311964d3d0af0fee6a3a98f956297 (patch)
treef422099dcf141ffb0ac75d03245dc9458dcfb953 /src
parent99a82be91cbb85239f70508f6695c6b21fd3558c (diff)
downloadscala-7479a44c51f311964d3d0af0fee6a3a98f956297.tar.gz
scala-7479a44c51f311964d3d0af0fee6a3a98f956297.tar.bz2
scala-7479a44c51f311964d3d0af0fee6a3a98f956297.zip
Add scaladoc comment about the case when Exception will be thrown by invocation of length method
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/collection/GenSeqLike.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library/scala/collection/GenSeqLike.scala b/src/library/scala/collection/GenSeqLike.scala
index be1da1660a..405d8d7e57 100644
--- a/src/library/scala/collection/GenSeqLike.scala
+++ b/src/library/scala/collection/GenSeqLike.scala
@@ -58,6 +58,7 @@ trait GenSeqLike[+A, +Repr] extends Any with GenIterableLike[A, Repr] with Equal
* Note: `xs.length` and `xs.size` yield the same result.
*
* @return the number of elements in this $coll.
+ * @throws IllegalArgumentException if the length of the sequence cannot be represented in an `Int`, for example, `(-1 to Int.MaxValue).length`.
*/
def length: Int