scala.annotation.capability.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala3-library_sjs1_3 Show documentation
Show all versions of scala3-library_sjs1_3 Show documentation
scala3-library-bootstrappedJS
package scala.annotation
import annotation.experimental
/** Marks an annotated class as a capability.
* If the annotation is present and -Ycc is set, any (possibly aliased
* or refined) instance of the class type is implicitly augmented with
* the universal capture set. Example
*
* @capability class CanThrow[T]
*
* THere, the capture set of any instance of `CanThrow` is assumed to be
* `{*}`.
*/
@experimental
@deprecated("To make a class a capability, let it derive from the `Capability` trait instead")
final class capability extends StaticAnnotation
© 2015 - 2024 Weber Informatics LLC | Privacy Policy