Skip to content
New issue

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

invoke broken for constructors #8861

Closed
simonster opened this issue Oct 31, 2014 · 2 comments
Closed

invoke broken for constructors #8861

simonster opened this issue Oct 31, 2014 · 2 comments

Comments

@simonster
Copy link
Member

More fallout from #8712:

julia> type A; end

julia> invoke(A, ())
ERROR: type: invoke: expected Function, got Type{A}

julia> method_exists(A, ())
ERROR: type: method_exists: expected Function, got Type{A}

julia> applicable(A)
ERROR: type: applicable: expected Function, got Type{A}

Maybe method_exists and applicable are not so useful since they would always be true for constructors due to the call fallback, but invoke still seems useful. This can currently be worked around as invoke(call, (Type{A},), A), but it would be nice if this weren't necessary.

@garborg
Copy link
Contributor

garborg commented Nov 13, 2014

Any thoughts about invoke's future? (I've been lazy about adding workarounds to get DataFrames' tests passing -- it's probably time. Just curious.)

@JeffBezanson
Copy link
Sponsor Member

Fixed by #13412.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants