diff options
author | Kota Mizushima <mizukota@gmail.com> | 2016-03-17 18:03:07 +0900 |
---|---|---|
committer | Kota Mizushima <mizukota@gmail.com> | 2016-03-24 01:45:30 +0900 |
commit | 7479a44c51f311964d3d0af0fee6a3a98f956297 (patch) | |
tree | f422099dcf141ffb0ac75d03245dc9458dcfb953 | |
parent | 99a82be91cbb85239f70508f6695c6b21fd3558c (diff) | |
download | scala-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
-rw-r--r-- | src/library/scala/collection/GenSeqLike.scala | 1 |
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 |