Why 32bit keyword argument functions give error (Int32 also) ?
julia> x = 2
2
julia> function sixty_four(x; y::Float64=0.5)
x+y
end
sixty_four (generic function with 1 method)
julia> function thirty_two(x; y::Float32=0.5)
x+y
end
thirty_two (generic function with 1 method)
julia> sixty_four(x)
2.5
julia> thirty_two(x)
ERROR: MethodError: no method matching var"#thirty_two#2"(::Float64, ::typeof(thirty_two), ::Int64)
The function `#thirty_two#2` exists, but no method is defined for this combination of argument types.
Closest candidates are:
var"#thirty_two#2"(::Float32, ::typeof(thirty_two), ::Any)
@ Main REPL[3]:1
Stacktrace:
[1] thirty_two(x::Int64)
@ Main ./REPL[3]:1
[2] top-level scope
@ REPL[5]:1