We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to define a method with arguments of multiple traits.
using SimpleTraits @traitdef Foo{T} @traitdef Bar{T} @traitfn f(::S, ::T) where {S, T; Foo{S}, Bar{T}} = nothing
I expect the macro @traitfn will generate a method like
@traitfn
f(::Type{Foo{S}}, ::Type{Bar{T}}, ::S, ::T) where {S, T}
However, it only generated
f(::Type{Foo{S}}, ::S, ::T) where {S, T}
Please correct me if my understanding on trait is wrong.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am trying to define a method with arguments of multiple traits.
I expect the macro
@traitfn
will generate a method likeHowever, it only generated
Please correct me if my understanding on trait is wrong.
The text was updated successfully, but these errors were encountered: