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

For comprehension desugaring incorrectly elides withFilter #6646

Closed
scabug opened this issue Nov 10, 2012 · 5 comments
Closed

For comprehension desugaring incorrectly elides withFilter #6646

scabug opened this issue Nov 10, 2012 · 5 comments

Comments

@scabug
Copy link

scabug commented Nov 10, 2012

regressed: c82ecab

sealed trait ColumnOption
case object NotNull extends ColumnOption
case object PrimaryKey extends ColumnOption

object Test {
  def main(args: Array[String]) {
    val l = List(PrimaryKey, NotNull)
    for (option @ NotNull <- l) println("Found " + option)
  }
}
@scabug
Copy link
Author

scabug commented Nov 10, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6646?orig=1
Reporter: @retronym
Affected Versions: 2.10.0-M3, 2.10.0-RC2
Other Milestones: 2.10.0
See #1336, #5589

@scabug
Copy link
Author

scabug commented Nov 10, 2012

@retronym said:
scala/scala#1606

@scabug
Copy link
Author

scabug commented Nov 10, 2012

@retronym said:
Marking as blocker, please discuss.

@scabug
Copy link
Author

scabug commented Nov 10, 2012

@paulp said:
I agree.

@scabug
Copy link
Author

scabug commented Nov 13, 2012

@adriaanm said:
scala/scala#1606

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