In Julia 0.5:
help?> Rational
search: Rational rationalize Irrational SerializationState permutations
No documentation found.
Summary:
immutable Rational{T<:Integer} <: Real
Fields:
num :: T<:Integer
den :: T<:Integer
while in Julia 0.6
help?> Rational
search: Rational rationalize Irrational SerializationState Factorization
No documentation found.
Base.Rational is of type UnionAll.
Summary:
struct UnionAll <: Type{T}
Fields:
var :: TypeVar
body :: Any
The details in 0.6 are wrong:
julia> Rational <: UnionAll
false
julia> fieldnames(Rational)
2-element Array{Symbol,1}:
:num
:den
What the doc is actually saying is that
julia> isa(Rational, UnionAll)
true
Not that it's particularly useful/unconfusing...
See #21029.
Maybe Rational
should just be documented...
Most helpful comment
Maybe
Rational
should just be documented...