We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As reported on scala-internals by Matthew Pocock, a Stream[Option[A]] containing mostly (or entirely) None instances will throw a SOE when flattened.
Easy to reproduce via:
Stream.from(0).take(100000).map(_ => None).flatten.length
That should return 0 but will throw a SOE.
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-8100?orig=1 Reporter: @non
Sorry, something went wrong.
@non said: Here's a PR that fixes the issue: scala/scala#3304
The test suite was taking too long, but I'm pretty sure all the tests will pass.
non
No branches or pull requests
As reported on scala-internals by Matthew Pocock, a Stream[Option[A]] containing mostly (or entirely) None instances will throw a SOE when flattened.
Easy to reproduce via:
That should return 0 but will throw a SOE.
The text was updated successfully, but these errors were encountered: