Skip to content

Require a method with kwargs #14

Description

@BatyLeo

Hello,
While trying the new support for callable structs (it works perfectly, thanks!), I found that methods with keyword arguments are not supported:

using RequiredInterfaces

abstract type CallableAbstract end

@required CallableAbstract begin
    (c::CallableAbstract)(; kwargs...)
end

throws an error: ERROR: LoadError: ArgumentError: Invalid required function!.

Is there a way to make it work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions