Scala Programming Language
  1. Scala Programming Language
  2. SI-6646

For comprehension desugaring incorrectly elides withFilter

    Details

      Description

      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)
        }
      }
      

        Issue Links

          Activity

          Show
          Jason Zaugg added a comment - https://github.com/scala/scala/pull/1606
          Hide
          Jason Zaugg added a comment -

          Marking as blocker, please discuss.

          Show
          Jason Zaugg added a comment - Marking as blocker, please discuss.
          Hide
          Paul Phillips added a comment -

          I agree.

          Show
          Paul Phillips added a comment - I agree.
          Show
          Adriaan Moors added a comment - https://github.com/scala/scala/pull/1606

            People

            • Assignee:
              Jason Zaugg
              Reporter:
              Jason Zaugg
            • Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development