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
Base.Callable
This was surfaced in https://discourse.julialang.org/t/how-do-i-precompile-a-callable-struct/115037/5, this package is assuming that only subtypes of Base.Callable have methods, but that's not true.
julia> struct Foo end julia> (::Foo)() = 1 julia> Foo()() 1 julia> Foo() isa Base.Callable false julia> methodinstances((Foo(),)) Core.MethodInstance[]
versus
julia> struct Bar <: Function end julia> (::Bar)() = 1 julia> Bar()() 1 julia> methodinstances((Bar(),)) 1-element Vector{Core.MethodInstance}: MethodInstance for (::Bar)()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This was surfaced in https://discourse.julialang.org/t/how-do-i-precompile-a-callable-struct/115037/5, this package is assuming that only subtypes of
Base.Callable
have methods, but that's not true.versus
The text was updated successfully, but these errors were encountered: