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

Void() does not work #13083

Closed
eschnett opened this issue Sep 12, 2015 · 5 comments
Closed

Void() does not work #13083

eschnett opened this issue Sep 12, 2015 · 5 comments

Comments

@eschnett
Copy link
Contributor

Void() returns an error:

Void()
LoadError: MethodError: `convert` has no method matching convert(::Type{Void})

This is

Julia Version 0.4.0-rc1+7
@yuyichao
Copy link
Contributor

Isn't it supposed to be fixed by #12962 ?

@yuyichao
Copy link
Contributor

I see, so #12962 addes the method to Core.call instead of Base.call

julia> Core.call(Void)

julia> Base.call(Void)
ERROR: MethodError: `convert` has no method matching convert(::Type{Void})
This may have arisen from a call to the constructor Void(...),
since type constructors fall back to convert methods.
Closest candidates are:
  convert{T}(::Type{T}, ::T)
  call{T}(::Type{T}, ::Any)
 in call at ./essentials.jl:57

@eschnett
Copy link
Contributor Author

I found this when I tried to add a test case... should have done that earlier.

Do you know how to fix this?

@yuyichao
Copy link
Contributor

Unless you want to use that VERY early in bootstrap or in inference, adding it in essential.jl or anything sourced by sysimg.jl that seems fit should work.

JeffBezanson added a commit that referenced this issue Sep 13, 2015
(cherry picked from commit ee541c3)
@tkelman
Copy link
Contributor

tkelman commented Sep 16, 2015

backported in #13107

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

4 participants