Class

scala.annotation.meta

companionClass

Related Doc: package meta

Permalink

final class companionClass extends Annotation with StaticAnnotation

When defining an implicit class, the Scala compiler creates an implicit conversion method for it. Annotations @companionClass and @companionMethod control where an annotation on the implicit class will go. By default, annotations on an implicit class end up only on the class.

Source
companionClass.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. companionClass
  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 companionClass()

    Permalink