Semantics of :: in return type vs. argument type annotations

There is another potential source of confusion, which is that = returns the value on the right, pre-conversion:

julia> x::Float64 = 1
1

julia> x
1.0
6 Likes