transparentTrait

scala.annotation.transparentTrait
final class transparentTrait extends StaticAnnotation

An annotation that can be used from Scala 2 to mark a trait as transparent. Scala 3 code would use the modifier transparent instead. Transparent traits are not inferred when combined with other types in an intersection. See reference/other-new-features/transparent-traits.html for details.

Attributes

Source
transparentTrait.scala
Graph
Supertypes
class Annotation
class Object
trait Matchable
class Any
In this article