I have a custom type with a TypePar denoting a dimension and would like to define the following:
type Foo{D}
bar::Array{D+1}
end
However, this does not work. As D is only 1 or 2 it would OK with
type Foo{1}
bar::Matrix
end
type Foo{2}
bar::Array{3}
end
but unfortunately this isn't working, either.
Can this problem be solved?
Thanks!
