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
Desugar the following:
for {x <- List(1); y = 1} ()
It effectively desugars to:
List(1).map { x => val y = 1; (x, y) }.foreach { case (x, y) => () }
Because there's no yield, I expect all .flatMap and .map calls to be .foreach instead. It should desugar to:
yield
.flatMap
.map
.foreach
List(1).foreach { x => val y = 1; () }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
reproduction steps
Desugar the following:
problem
It effectively desugars to:
expectation
Because there's no
yield
, I expect all.flatMap
and.map
calls to be.foreach
instead. It should desugar to:The text was updated successfully, but these errors were encountered: