Skip to content

Commit 18fe176

Browse files
committed
News and compat annotation for #29600 (fieldtypes).
1 parent e43c150 commit 18fe176

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ New library functions
2525
* `splitpath(p::String)` function, which is the opposite of `joinpath(parts...)`: it splits a filepath into its components ([#28156]).
2626
* `isnothing(::Any)` function, to check whether something is a `Nothing`, returns a `Bool` ([#29679]).
2727
* `getpid(::Process)` method ([#24064]).
28+
* `fieldtypes(T::Type)` which return the declared types of the field in type T ([#29600]).
2829

2930
Standard library changes
3031
------------------------

base/reflection.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,9 @@ end
628628
629629
The declared types of all fields in a composite DataType `T` as a tuple.
630630
631+
!!! compat "Julia 1.1"
632+
This function requires at least Julia 1.1.
633+
631634
# Examples
632635
```jldoctest
633636
julia> struct Foo

0 commit comments

Comments
 (0)