Skip to content

Commit

Permalink
News and compat annotation for #29600 (fieldtypes).
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Dec 1, 2018
1 parent 767555c commit d932836
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ New library functions
* `splitpath(p::String)` function, which is the opposite of `joinpath(parts...)`: it splits a filepath into its components ([#28156]).
* `isnothing(::Any)` function, to check whether something is a `Nothing`, returns a `Bool` ([#29679]).
* `getpid(::Process)` method ([#24064]).
* `fieldtypes(T::Type)` which return the declared types of the field in type T ([#29600]).

Standard library changes
------------------------
Expand Down
3 changes: 3 additions & 0 deletions base/reflection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,9 @@ end
The declared types of all fields in a composite DataType `T` as a tuple.
!!! compat "Julia 1.1"
This function requires at least Julia 1.1.
# Examples
```jldoctest
julia> struct Foo
Expand Down

0 comments on commit d932836

Please sign in to comment.