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

Semi before nested guard in for-comps optional as implemented #7937

Closed
scabug opened this issue Oct 26, 2013 · 4 comments
Closed

Semi before nested guard in for-comps optional as implemented #7937

scabug opened this issue Oct 26, 2013 · 4 comments
Assignees
Milestone

Comments

@scabug
Copy link

@scabug scabug commented Oct 26, 2013

Update syntax summary to reflect that the first form is permitted:

scala> for (i <- 1 to 5 ; j = 2 * i if j > 4) yield j
res0: scala.collection.immutable.IndexedSeq[Int] = Vector(6, 8, 10)

scala> for (i <- 1 to 5 ; j = 2 * i ; if j > 4) yield j
res1: scala.collection.immutable.IndexedSeq[Int] = Vector(6, 8, 10)
@scabug
Copy link
Author

@scabug scabug commented Oct 26, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7937?orig=1
Reporter: @som-snytt
Affected Versions: 2.11.0-M6

@scabug
Copy link
Author

@scabug scabug commented Feb 3, 2014

@scabug
Copy link
Author

@scabug scabug commented Mar 12, 2014

@adriaanm said:
Fixed in markdown spec.

@scabug scabug closed this Mar 12, 2014
@scabug
Copy link
Author

@scabug scabug commented Mar 12, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants