You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.IllegalArgumentException:Seqs cannot contain more than Int.MaxValue elements.
at scala.collection.immutable.NumericRange$$.count(NumericRange.scala:205)
at scala.collection.immutable.Range$$.count(Range.scala:255)
at scala.collection.immutable.Range.<init>(Range.scala:52)
at scala.collection.immutable.Range$$Inclusive.<init>(Range.scala:257)
at scala.runtime.RichInt.to(RichInt.scala:24)
=== What versions of the following are you using? ===
Scala: 2.9.0.r24394-b20110307020059
Java: Java 1.6.0_21
Operating system: OpenJDK 64-Bit Server VM
The text was updated successfully, but these errors were encountered:
I wonder if we have to decide whether to reject things like "Int.MinValue to Int.MaxValue" (by assuming step size is 1) and fail fast or if it is possible to see if there is a "by someInt" following, resulting in an amount of less than Int.MaxValue elements.
@paulp said:
(In r24508) Some boundary conditions in range. Also bit the bullet on getting
infix implicits to Integral and Fractional. As a bonus this patch
knocked 10,000 long boxings off a specialized test. Who knew.
Closes #4308, #4321, review by community.
=== What steps will reproduce the problem? ===
=== What is the expected behavior? ===
=== What do you see instead? ===
=== What versions of the following are you using? ===
The text was updated successfully, but these errors were encountered: