Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken REPL after type inference with toArrat. #7499

Closed
scabug opened this issue May 21, 2013 · 4 comments
Closed

Broken REPL after type inference with toArrat. #7499

scabug opened this issue May 21, 2013 · 4 comments

Comments

@scabug
Copy link

scabug commented May 21, 2013

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.>
@scabug
Copy link
Author

scabug commented May 21, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7499?orig=1
Reporter: Senia Popugaev (senia)
Affected Versions: 2.10.1, 2.11.0-M2
Duplicates #7319
Attachments:

  • example.txt (created on May 21, 2013 5:04:34 AM UTC, 3205 bytes)

@scabug
Copy link
Author

scabug commented May 21, 2013

@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.

@scabug
Copy link
Author

scabug commented May 21, 2013

@retronym said:
Duplicate of #7319.

@scabug scabug closed this as completed May 21, 2013
@scabug
Copy link
Author

scabug commented May 21, 2013

@retronym said:
Test case added: scala/scala#2573

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants