Skip to main content

lower_bound

Function lower_bound 

Source
pub fn lower_bound(
    ir: &mut Ir,
    ctx: &TypeContext,
    type_exprs: &[InstId],
) -> InstId
Expand description

Computes the lower bound (most general common subtype) of a set of type expressions.

Repeatedly intersects types. Returns EmptyType if intersection is empty.