I am trying to declare a typealias that should be also a subtype of an
abstract type. For instance, below I would like AliasType to be an alias of
Vector{Int} and also a subtype of AbstractType. This code will declare the
alias correctly but not the subtype. (I think it evaluates Vector{Int} <:
AbstractType instead)
abstract AbstractType
typealias AliasType Vector{Int} <: AbstractType
I can go around the problem by doing something like this:
abstract AbstractType
type AliasType <: AbstractType
content::Vector{Int}
end
But then many function that are defined for Vector would be directly
accessed for AliasType and I would need to overload them.
The reason I want to do this is because I have more complicated type that
are subtypes of AbstractType. Maybe there is a better solution than the
second piece of code :)