aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/autoTuplingTest.scala
Commit message (Collapse)AuthorAgeFilesLines
* Added auto-tupling.Martin Odersky2014-03-201-0/+9
Auto-tupling should satisfy the following spec. 1. An application `f(args)` where `f` is a non-overloaded method which has a single, non-repeated parameter as its first parameter list and where args consists of two or more arguments is expanded to `f((args))`. 2. A constructor pattern `C(args)` where `C.unapply` is a non-overloaded method which has a single, non-repeated parameter as its first parameter list and where args consists of two or more arguments is expanded to `C((args))`. Auto-tupling can be disabled by language feature "noAutoTupling". Conflicts: test/dotc/tests.scala