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
Fix lazy evaluation of StreamWithFilter#foreach #8990
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8990?orig=1 |
@ms-tg said (edited on Jan 31, 2015 3:12:09 AM UTC): |
@ms-tg said: As explained there and on scala-internals, I'm a bit stymied by the baked-in Do you have any suggestions on approaches I could take here? The two tests Thanks for any ideas, |
@adriaanm said: |
This bug seems to be caused by the alternate, non-recursive implementation of
#foreach
inStreamWithFilter
, which ends up holding a reference to the beginning of the stream for the lifetime of the iteration.The text was updated successfully, but these errors were encountered: