Skip to content

Require a method for specific subtypes only? #10

Description

@BatyLeo

I have a situation where I require a method only for some subtypes of the interface.

Would it be possible to support something like this for example?

abstract type MyType{T} end

function my_func end
function my_other_func end

@required MyType my_func(::MyType)

@required MyType{<:AbstractVector} my_other_func(::MyType)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions