ValueClasses

dotty.tools.dotc.transform.ValueClasses
object ValueClasses

Methods that apply to user-defined value classes

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def evt2u(cls: ClassSymbol)(using Context): Symbol

For a value class d, this returns the synthetic cast from ErasedValueType to the underlying type defined in the companion module. This method is added to the module and further described in ExtensionMethods.

For a value class d, this returns the synthetic cast from ErasedValueType to the underlying type defined in the companion module. This method is added to the module and further described in ExtensionMethods.

Attributes

def u2evt(cls: ClassSymbol)(using Context): Symbol

For a value class d, this returns the synthetic cast from the underlying type to ErasedValueType defined in the companion module. This method is added to the module and further described in ExtensionMethods.

For a value class d, this returns the synthetic cast from the underlying type to ErasedValueType defined in the companion module. This method is added to the module and further described in ExtensionMethods.

Attributes

The unboxed type that underlies a derived value class

The unboxed type that underlies a derived value class

Attributes

The member of a derived value class that unboxes it.

The member of a derived value class that unboxes it.

Attributes