Constant

zio.blocks.typeid.TypeRepr.Constant
See theConstant companion object
sealed trait Constant extends TypeRepr

Constant/literal type: 42, "foo", true.

Scala 3 supports literal types natively; Scala 2.13 with -Xliteral-types.

Attributes

Companion
object
Source
TypeRepr.scala
Graph
Supertypes
trait TypeRepr
class Object
trait Matchable
class Any
Known subtypes
class BooleanConst
class CharConst
class ClassOfConst
class DoubleConst
class FloatConst
class IntConst
class LongConst
object NullConst
class StringConst
object UnitConst
Show all

Members list

Value members

Inherited methods

def containsParam(param: TypeParam): Boolean

Returns true if this type expression references the given type parameter.

Returns true if this type expression references the given type parameter.

Attributes

Inherited from:
TypeRepr
Source
TypeRepr.scala