The following code fails:
if VERSION >= v"0.7.0"
ccall(:jl_exit_on_sigint, Nothing, (Cint,), 0)
else
ccall(:jl_exit_on_sigint, Void, (Cint,), 0)
end
with the warning on 0.7:
WARNING: Base.Void is deprecated, use Nothing instead.
It fails with an error on 1.0. But why? I am checking for the version.
Any idea?