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
Broken Repl state after type inference error on method toArray in generic (Seq[_]) context.
To reproduce:
bq. scala> (1 to 2).toArray: Seq[_]
or
bq. scala> Seq(1) ++ (1 to 2).toArray
then any other expression.
Example:
scala> Seq(1) ++ (2 to 3).toArray
<console>:8: error: polymorphic expression cannot be instantiated to
<... 19 lines of error description. See attachment.>
scala> 1
error: type mismatch;
found : Array[?B]
required: scala.collection.GenTraversableOnce[?]
<... same error description. See attachment.>
The text was updated successfully, but these errors were encountered:
@paulp said:
I can reproduce in 2.10.0 and 2.10.1, but not in 2.9.3 or 2.11. And, happily, 2.10.x doesn't do it either, so it should be fixed in the imminent 2.10.2.
Broken Repl state after type inference error on method toArray in generic (Seq[_]) context.
To reproduce:
bq. scala> (1 to 2).toArray: Seq[_]
or
bq. scala> Seq(1) ++ (1 to 2).toArray
then any other expression.
Example:
The text was updated successfully, but these errors were encountered: