How to make type with one abstract and one definied field
Like this:
abstract AbstractType
type type1 <: AbstractType
x
y
end
type type2 <: AbstractType
w
z
end
type MyType{T<:AbstractType}
a::T
b::Int64
end
a = MyType(type1(1,2))
I tried with some constructors but it didnt work as well.