CapturesBound

open class CapturesBound : Bound(source)

Capture(G): The variables α1, ..., αn represent the result of capture conversion (§5.1.10) applied to G (where A1, ..., An may be types or wildcards and may mention inference variables).

Author

Federico Tomassetti

Constructors

Link copied to clipboard
constructor(inferenceVariables: List<InferenceVariable>, typesOrWildcards: List<ResolvedType>)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
Other bounds relate two inference variables, or an inference variable to a type that contains inference variables.
Link copied to clipboard
Given a bound of the form α = T or T = α, we say T is an instantiation of α.
Link copied to clipboard
Given a bound of the form T <: α, we say T is a proper lower bound of α.
Link copied to clipboard
Given a bound of the form α <: T, we say T is a proper upper bound of α.
Link copied to clipboard
open fun isSatisfied(inferenceVariableSubstitution: InferenceVariableSubstitution): Boolean
A bound is satisfied by an inference variable substitution if, after applying the substitution, the assertion is true.
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
Other methods