Skip to content
This repository was archived by the owner on Nov 22, 2023. It is now read-only.
This repository was archived by the owner on Nov 22, 2023. It is now read-only.

promote HyperRectangle numeric type instead of error #185

@goretkin

Description

@goretkin
julia> bb1 = HyperRectangle{2,Int64}([0, 0], [1, 1])

HyperRectangle{2,Int64}([0, 0], [1, 1])

julia> bb2 = HyperRectangle{2,Float64}([-3.436309307146981, -3.4222642784489077], [-8.886452461851743, -14.325391136732803])
HyperRectangle{2,Float64}([-3.436309307146981, -3.4222642784489077], [-8.886452461851743, -14.325391136732803])

julia> bb1  bb2
ERROR: MethodError: no method matching iterate(::HyperRectangle{2,Int64})

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