Skip to content

Commit

Permalink
x::Int8=1000 now throws an error upon conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahao committed Oct 15, 2014
1 parent 4bd6caf commit 7a065aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/manual/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ using the ``convert`` function:
.. doctest:: foo-func

julia> function foo()
x::Int8 = 1000
x::Int8 = 100
x
end
foo (generic function with 1 method)

julia> foo()
-24
100

julia> typeof(ans)
Int8
Expand Down

0 comments on commit 7a065aa

Please sign in to comment.