Skip to content

tightly bound 'Number'’s type #337

Description

@Smattr

Number describes its type as an unbounded range:

Ptr<TypeExpr> Number::type() const {
  return Ptr<Range>::make(nullptr, nullptr, location());
}

Offhand, I don’t recall why this would be. It seems much more natural for it to return a type that contains only its exact value. This would allow more precise reasoning elsewhere, especially in upcoming union support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions