Skip to content

Improve error message when using intersect instead of intersect_interval #762

Description

@DimitriAlston

If you run the following code:

using IntervalArithmetic
a = interval(1.0, 2.0)
intersect(a, a)

you would appropriately get the following error: ArgumentError: `intersect` is purposely not supported for intervals. See instead `intersect_interval` .
However, if you run something like this:

using IntervalArithmetic
a = interval(1.0, 2.0)
intersect(a, 1.0)

you would get: ArgumentError: `union!` is purposely not supported for intervals. See instead `hull` , but I believe this should return the same error as the first instance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions