SameAsBound

open class SameAsBound : Bound(source)

S = T, where at least one of S or T is an inference variable: S is the same as T.

Author

Federico Tomassetti

Constructors

Link copied to clipboard
constructor(s: ResolvedType, t: ResolvedType)

Properties

Link copied to clipboard
open val s: ResolvedType
Link copied to clipboard
open val t: ResolvedType

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