summaryrefslogtreecommitdiff
path: root/test/files/neg/t7473.scala
blob: 593231d5f28e24c8e91cf5d55ac093245dfa737e (plain) (blame)
1
2
3
4
5
6
7
object Foo {
  val i,j = 3
  //for (x = Option(i); if x == j) yield 42  //t7473.scala:4: error: '<-' expected but '=' found.
  // evil postfix!
  (for (x = Option(i); if x == j) yield 42) toList
}