Skip to content

Method inheritance #30408

@bramtayl

Description

@bramtayl

If these were inferable, defining interfaces could be quite a bit robust. For example, you could define is_abstract_array(x) = hasmethod(eltype, Tuple{typeof(x)}) && hasmethod(getindex, Tuple{typeof(x), Int}).

Edit: constant propagatable hasproperty would also be cool

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