julia> function fn(n::Number)
         println("Number")
       end
fn (generic function with 1 method)

julia> function fn(n::Int64)
         println("Int64")
       end
fn (generic function with 2 methods)

julia> fn(1)
Int64

julia> fn(1::Number)
Int64

# is there any way I can call fn(n::Number) with an Int64 value? I guess I 
could:

julia> fn(convert(Uint64, 1))
Number

# but what if I didn't have another 'spare' type to distinguish it with?

Reply via email to