I wonder if there is a function that returns whether a type T is abstract or not. Any idea? I am trying to make a generator that returns all concrete types of a specific abstract type, and I need to check whether a certain type is abstract or not.
subtypes(T) is no good because it cannot differentiate between abstract types with no subtype (useful to have around for future support plans) and concrete types.
julia> using Compat
julia> isabstract
ERROR: UndefVarError: isabstract not defined
julia> Compat.isabstract
ERROR: UndefVarError: isabstract not defined
I was just searching for an isabstract function and also found Base.isabstract. However, I noticed Base.isabstract(Complex) == false which seems wrong to me.
But someone on Slack pointed out that there is isleaftype. I thought it might be useful to mention it here.