class SimpleSub::Typer::TypeVariable
Overview
A type variable living at a certain polymorphism level #level
, with mutable bounds.
Invariant: Types appearing in the bounds never have a level higher than this variable's #level
.
Defined in:
simple_sub/type.crConstructors
Instance Method Summary
- #level : Int32
- #level=(level : Int32)
- #lower_bounds : Array(SimpleSub::Typer::SimpleType)
- #lower_bounds=(lower_bounds : Array(SimpleSub::Typer::SimpleType))
- #show(io : IO)
- #uid : Int32
- #uid=(uid : Int32)
- #upper_bounds : Array(SimpleSub::Typer::SimpleType)
- #upper_bounds=(upper_bounds : Array(SimpleSub::Typer::SimpleType))
Instance methods inherited from class SimpleSub::Typer::SimpleType
instantiated : SimpleType
instantiated
Instance methods inherited from class SimpleSub::Typer::Type
instantiated : SimpleType
instantiated,
level : Int32
level,
show(io : IO)show show