scala / 3.1.1 / scala / annotation / transparenttrait.html /

Class 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.

Supertypes

© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.1.1/scala/annotation/transparentTrait.html