From 7479a44c51f311964d3d0af0fee6a3a98f956297 Mon Sep 17 00:00:00 2001 From: Kota Mizushima Date: Thu, 17 Mar 2016 18:03:07 +0900 Subject: Add scaladoc comment about the case when Exception will be thrown by invocation of length method --- src/library/scala/collection/GenSeqLike.scala | 1 + 1 file changed, 1 insertion(+) (limited to 'src/library') 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 -- cgit v1.2.3