aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/autoTuplingTest.scala
Commit message (Collapse)AuthorAgeFilesLines
* Add import back.Martin Odersky2016-08-181-0/+2
| | | | Needed because the test is also run in neg wihtout command line option.
* Refinements to auto tuplingMartin Odersky2016-08-181-2/+0
| | | | | | | | | | There's a nasty interaction with auto-tupling and trying to insert an implicit on the qualifier of a call. If the original call fails, we need to "undo" any auto-tupling decisions in calls where an implicit is inserted on the qualifier. Also: Needed to fix canAutoTuple test so that Scala2 feature is checked instead of dotty's. Also: Drop features in dotty.language that duplicate those in scala.language.
* Adapt neg tests to new neg tests checksVladimirNik2016-02-181-3/+3
|
* Negtests with // error commentsvsalvis2016-02-181-2/+2
|
* Added auto-tupling.Martin Odersky2014-03-201-0/+11
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