Skip to content

problem with typemin and typemax for Irrational #36978

Closed

Description

I think it is a bug:

julia> t = typeof(pi)
Irrational{:π}

julia> hasmethod(typemin, (t,))
true

julia> typemin(t)
ERROR: MethodError: no method matching typemin(::Type{Irrational{:π}})

The same happens with typemax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    mathsMathematical functionstypes and dispatchTypes, subtyping and method dispatch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions