I also want to use it to create a new type like the following (just
example, not correct code):
type Foo{F<:AbstractFloat, T<DenseArray}
x::T{F}
Foo() = new(call(T, F, 100))
end
The method you mentioned works for function, but it does not work for type.
On Saturday, October 10, 2015 at 8:30:06 AM UTC+2, Tomas Lycken wrote:
>
> In the meantime, you can use
>
> foo{T<:AbstractFloat}(x::DenseArray{T})
>
> to get what you want.
>
> // T
>
>
