TypeParam
zio.blocks.codegen.ir.TypeParam
Represents a type parameter in the IR, with optional variance and bounds.
Value parameters
- name
-
The name of the type parameter (e.g., "A", "B")
- upperBound
-
An optional upper bound type (e.g., Some(TypeRef("Serializable")) for
A : Nothing) - variance
-
The variance of the type parameter (defaults to Invariant)
Attributes
- Example
-
// Simple invariant type param val a = TypeParam("A") // Covariant type param val covariant = TypeParam("A", Variance.Covariant) // With upper bound val bounded = TypeParam("A", upperBound = Some(TypeRef("Serializable"))) - Source
- TypeParam.scala
- Graph
-
- Supertypes
Members list
In this article