Skip to content

Commit d932836

Browse files
committed
News and compat annotation for #29600 (fieldtypes).
1 parent 767555c commit d932836

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEWS.md

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ New library functions
3434
* `splitpath(p::String)` function, which is the opposite of `joinpath(parts...)`: it splits a filepath into its components ([#28156]).
3535
* `isnothing(::Any)` function, to check whether something is a `Nothing`, returns a `Bool` ([#29679]).
3636
* `getpid(::Process)` method ([#24064]).
37+
* `fieldtypes(T::Type)` which return the declared types of the field in type T ([#29600]).
3738

3839
Standard library changes
3940
------------------------

base/reflection.jl

+3
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,9 @@ end
664664
665665
The declared types of all fields in a composite DataType `T` as a tuple.
666666
667+
!!! compat "Julia 1.1"
668+
This function requires at least Julia 1.1.
669+
667670
# Examples
668671
```jldoctest
669672
julia> struct Foo

0 commit comments

Comments
 (0)