summaryrefslogtreecommitdiff
path: root/test/files/neg/names-defaults-neg.scala
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '2.11.x' into merge/2.11.x-to-2.12.x-20150624Jason Zaugg2015-06-241-2/+2
|\
| * Fix some typos (a-c)Janek Bogucki2015-06-181-2/+2
| |
* | SI-9140 Allow omitting pleonastic parameter nameSom Snytt2015-02-091-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable simply: ``` scala> def f(@deprecatedName foo: String) = foo.reverse f: (foo: String)String scala> f(foo = "bar") <console>:9: warning: naming parameter foo has been deprecated. f(foo = "bar") ^ res0: String = rab ``` `Symbol.deprecatedParamName` conventionally returns `NO_NAME` when the name is omitted.
* | SI-9140 Allow deprecating current parameter nameSom Snytt2015-02-081-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow deprecatedName to specify the name of the parameter it qualifies. This tells the user, That's my name, don't wear it out. I.e., don't use my name when calling me. Use cases include: the name will change; normally a name should be provided for a boolean, but not in this case (perhaps because there is only one argument). ``` scala> def f(@deprecatedName('foo) bar: String) = bar.reverse f: (bar: String)String scala> f(foo = "hello") <console>:9: warning: the parameter name foo has been deprecated. Use bar instead. f(foo = "hello") ^ res0: String = olleh scala> def g(@deprecatedName('foo) foo: String) = foo.reverse g: (foo: String)String scala> g(foo = "hello") <console>:9: warning: naming parameter foo has been deprecated. g(foo = "hello") ^ res1: String = olleh ```
* Renamed Application to App.Martin Odersky2011-02-211-1/+1
|
* better error message for default arguments.Lukas Rytz2010-09-031-0/+4
|
* close #3685. review by moors.Lukas Rytz2010-08-051-0/+47
|
* added @deprecatedName annotation, allowing to d...Lukas Rytz2010-08-031-0/+7
| | | | | | added @deprecatedName annotation, allowing to deprecate parameter names. review by prokopec.
* close #3648 (again).Lukas Rytz2010-07-131-0/+5
|
* removed integration of placeholder syntax and n...Lukas Rytz2010-06-161-0/+13
| | | | | | removed integration of placeholder syntax and named arguments. review by odersky
* fix #2488.Lukas Rytz2009-11-121-1/+0
|
* fixed #2290 and #2325Lukas Rytz2009-09-241-6/+0
|
* small fix to named argumentsLukas Rytz2009-06-251-0/+2
|
* named arguments only at top level in () paramet...Lukas Rytz2009-06-251-1/+4
| | | | | named arguments only at top level in () parameters.
* improvements to names / defaults (implicits, ty...Lukas Rytz2009-06-201-3/+18
| | | | | | improvements to names / defaults (implicits, type of defaults, #2064, ...)
* allow using named / default arguments in self- ...Lukas Rytz2009-06-151-18/+1
| | | | | | allow using named / default arguments in self- and super constructor calls. fixes #2050 and #2052.
* removed code for parsing old pickle format.Lukas Rytz2009-06-031-0/+3
|
* Named and default argumentsLukas Rytz2009-05-301-0/+109
- MethodTypes now have (params: List[Symbol]) - "copy"-methods for case classes - the "copy" object in the compiler is now called "treeCopy"