superArg
scala.annotation.meta.superArg
class superArg(p: String, v: Any) extends StaticAnnotation
This internal annotation encodes arguments passed to annotation superclasses. Example:
import scala.annotation.Annotation
class a(x: Int) extends Annotation
class b extends a(42) // the compiler adds `@superArg("x", 42)` to class b
Value parameters
- p
-
the name of the parameter in the superclass annotation
- v
-
the value passed to the superclass annotation parameter
Attributes
- Source
- superArg.scala
- Graph
-
- Supertypes
In this article