Difference between '::UInt64' and '::Type(UInt64)'

You put UInt64. Example:

julia> f(x::UInt64) = 1
f (generic function with 1 methods)

julia> f(x::Type{UInt64}) = 2
f (generic function with 2 methods)

julia> f(UInt64(5))
1

julia> f(UInt64)
2
3 Likes