I've got a parametric type:

immutable SplineInterpolator{N<:Integer} <: Interpolator1D end

NB:

abstract Interpolator
abstract Interpolator1D <: Interpolator

Now, when I try to create the concrete type...

SplineInterpolator{3}

...I get the following error message:

ERROR: type: SplineInterpolator: in N, expected N<:Integer, got Int64

NB that typeof(3) <: Integer returns true

Why am I get this error message? Using Julia 0.3.2 on OS X 10.10

Thanks

Reply via email to