ApproxState

object ApproxState

The approximation state indicates how the pair of types currently compared relates to the types compared originally.

  • None : They are still the same types
  • LoApprox: The left type is approximated (i.e widened)"
  • HiApprox: The right type is approximated (i.e narrowed)"
class Object
trait Matchable
class Any

Type members

Types

opaque type Repr

Value members

Concrete fields

val Fresh: Repr

A special approximation state to indicate that this is the first time we compare (approximations of) this pair of types. It's converted to None in isSubType, but also leads to leftRoot being set there.

A special approximation state to indicate that this is the first time we compare (approximations of) this pair of types. It's converted to None in isSubType, but also leads to leftRoot being set there.

val None: Repr

Extensions

Extensions

extension (approx: Repr)
def addLow: Repr
def low: Boolean
def show: String