retains

scala.annotation.retains
class retains(xs: Any*) extends StaticAnnotation

An annotation that indicates capture of a set of references under -Ycc.

T @retains(x, y, z)

is the internal representation used for the capturing type

{x, y, z}  T

The annotation can also be written explicitly if one wants to avoid the non-standard capturing type syntax.

Attributes

Source:
retains.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view