Class

scala

deprecatedName

Related Doc: package scala

Permalink

class deprecatedName extends Annotation with StaticAnnotation

An annotation that designates the name of the parameter to which it is applied as deprecated. Using that name in a named argument generates a deprecation warning.

For instance, evaluating the code below in the Scala interpreter

def inc(x: Int, @deprecatedName('y) n: Int): Int = x + n
inc(1, y = 2)

will produce the following output:

warning: there were 1 deprecation warnings; re-run with -deprecation for details
res0: Int = 3
Annotations
@param()
Source
deprecatedName.scala
Since

2.8.1

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. deprecatedName
  2. StaticAnnotation
  3. Annotation
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new deprecatedName(name: Symbol)

    Permalink