On this page
Class companionClass.companionClass
final class companionClass extends 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.
Supertypes |
---|
© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.2.0/scala/annotation/meta/companionClass.html