Attributes
- Companion
- trait
- Source
- TypeRepr.scala
- Graph
-
- Supertypes
- Self type
-
TypeRepr.type
Members list
Type members
Classlikes
Annotated type: A @annotation.
Annotated type: A @annotation.
A type with one or more annotations attached.
Attributes
- Source
- TypeRepr.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeReprclass Objecttrait Matchableclass AnyShow all
Any kind type (for kind-polymorphic contexts).
Any kind type (for kind-polymorphic contexts).
Attributes
- Source
- TypeRepr.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait TypeReprclass Objecttrait Matchableclass AnyShow all
- Self type
-
AnyKindType.type
The top type: Any.
The top type: Any.
Attributes
- Source
- TypeRepr.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait TypeReprclass Objecttrait Matchableclass AnyShow all
- Self type
-
AnyType.type
Application of a type constructor to type arguments.
Application of a type constructor to type arguments.
Examples:
List[Int]→Applied(Ref(listId), List(Ref(intId)))Map[String, Int]→Applied(Ref(mapId), List(Ref(stringId), Ref(intId)))F[A]→Applied(ParamRef(F), List(ParamRef(A)))
Attributes
- Source
- TypeRepr.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeReprclass Objecttrait Matchableclass AnyShow all
By-name parameter type: => A.
By-name parameter type: => A.
The argument is evaluated lazily each time it's used.
Attributes
- Source
- TypeRepr.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeReprclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- trait
- Source
- TypeRepr.scala
- Supertypes
- Self type
-
Constant.type
Constant/literal type: 42, "foo", true.
Constant/literal type: 42, "foo", true.
Scala 3 supports literal types natively; Scala 2.13 with -Xliteral-types.
Attributes
- Companion
- object
- Source
- TypeRepr.scala
- Supertypes
- Known subtypes
-
class BooleanConstclass CharConstclass ClassOfConstclass DoubleConstclass FloatConstclass IntConstclass LongConstobject NullConstclass StringConstobject UnitConstShow all
Context function type: (A, B) ?=> C (Scala 3).
Context function type: (A, B) ?=> C (Scala 3).
Context functions provide their arguments implicitly.
Attributes
- Source
- TypeRepr.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeReprclass Objecttrait Matchableclass AnyShow all
Function type: (A, B) => C.
Function type: (A, B) => C.
Value parameters
- params
-
Parameter types
- result
-
Result type
Attributes
- Source
- TypeRepr.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeReprclass Objecttrait Matchableclass AnyShow all
Intersection type: A & B & C (Scala 3) or A with B with C (Scala 2).
Intersection type: A & B & C (Scala 3) or A with B with C (Scala 2).
The list contains at least 2 types. For single types, use the type directly.
Note: Equality is order-independent, so A & B equals B & A.
Attributes
- Companion
- object
- Source
- TypeRepr.scala
- Supertypes
Attributes
- Companion
- class
- Source
- TypeRepr.scala
- Supertypes
- Self type
-
Intersection.type
The bottom type: Nothing.
The bottom type: Nothing.
Attributes
- Source
- TypeRepr.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait TypeReprclass Objecttrait Matchableclass AnyShow all
- Self type
-
NothingType.type
The null type: Null.
The null type: Null.
Attributes
- Source
- TypeRepr.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait TypeReprclass Objecttrait Matchableclass AnyShow all
- Self type
-
NullType.type
Reference to a type parameter.
Reference to a type parameter.
Used within type expressions to refer to type parameters. For example, in List[A], the A is a ParamRef(TypeParam("A", 0)).
Value parameters
- binderDepth
-
De Bruijn index for nested type lambdas (0 = innermost binder)
- param
-
The type parameter being referenced
Attributes
- Source
- TypeRepr.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeReprclass Objecttrait Matchableclass AnyShow all
Reference to a named type (possibly a type constructor if id.arity > 0).
Reference to a named type (possibly a type constructor if id.arity > 0).
Examples:
Int→Ref(intId)whereintId.arity == 0List(unapplied) →Ref(listId)wherelistId.arity == 1
Attributes
- Source
- TypeRepr.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeReprclass Objecttrait Matchableclass AnyShow all
Repeated parameter type: A* (varargs).
Repeated parameter type: A* (varargs).
Used for variadic parameters.
Attributes
- Source
- TypeRepr.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeReprclass Objecttrait Matchableclass AnyShow all
Singleton type: x.type.
Singleton type: x.type.
Represents the type of a specific term/value.
Attributes
- Source
- TypeRepr.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeReprclass Objecttrait Matchableclass AnyShow all
Structural (refinement) type.
Structural (refinement) type.
Examples:
{ def foo: Int }→Structural(Nil, List(Def("foo", Nil, Nil, Ref(intId))))AnyRef { type T; val x: T }→Structural(List(Ref(anyRefId)), List(...))
Attributes
- Source
- TypeRepr.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeReprclass Objecttrait Matchableclass AnyShow all
This type: this.type within a class/trait.
This type: this.type within a class/trait.
Represents the singleton type of the enclosing instance.
Attributes
- Source
- TypeRepr.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeReprclass Objecttrait Matchableclass AnyShow all
Tuple type: (A, B, C) or named tuples (name: String, age: Int) (Scala 3.5+).
Tuple type: (A, B, C) or named tuples (name: String, age: Int) (Scala 3.5+).
Value parameters
- elems
-
The tuple elements, each with an optional label
Attributes
- Source
- TypeRepr.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeReprclass Objecttrait Matchableclass AnyShow all
Type lambda: [X, Y] =>> F[X, Y] (Scala 3).
Type lambda: [X, Y] =>> F[X, Y] (Scala 3).
Represents an anonymous type-level function.
Attributes
- Source
- TypeRepr.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeReprclass Objecttrait Matchableclass AnyShow all
Type projection: Outer#Inner.
Type projection: Outer#Inner.
Refers to a type member of another type.
Attributes
- Source
- TypeRepr.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeReprclass Objecttrait Matchableclass AnyShow all
Type selection: qualifier.Member.
Type selection: qualifier.Member.
Path-dependent type access through a term.
Attributes
- Source
- TypeRepr.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeReprclass Objecttrait Matchableclass AnyShow all
Union type: A | B | C (Scala 3 only).
Union type: A | B | C (Scala 3 only).
The list contains at least 2 types. For single types, use the type directly.
Note: Equality is order-independent, so A | B equals B | A.
Attributes
- Companion
- object
- Source
- TypeRepr.scala
- Supertypes
Attributes
- Companion
- class
- Source
- TypeRepr.scala
- Supertypes
- Self type
-
Union.type
The unit type: Unit.
The unit type: Unit.
Attributes
- Source
- TypeRepr.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait TypeReprclass Objecttrait Matchableclass AnyShow all
- Self type
-
UnitType.type
Wildcard type with bounds: ?, ? : Lower.
Wildcard type with bounds: ?, ? : Lower.
Used in type arguments when the exact type is not specified.
Attributes
- Source
- TypeRepr.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeReprclass Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
Creates a simple function type.
Creates an intersection of multiple types.
Creates a simple tuple (unlabeled elements).
Creates a union of multiple types.