aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i1975.scala
Commit message (Collapse)AuthorAgeFilesLines
* Fix #1975: Align valdefs and for expressions for patternsMartin Odersky2017-02-141-0/+5
val definitions and for expressions both distinguish whether something is a pattern or a variable binding. They no do it the same way: `ident` or an `ident: type` is a variable binding, everything else is a pattern. Previously, capitalized idents were considered as bindings in valdefs but as pattern in fors.