Is it a bug or I am doing something wrong?

julia> typemax(Int16) + 1
32768

I think you need to restart your Julia session. You may have overwritten some methods somewhere.

3 Likes