I have an abstract type
abstract type PointND{N<:Integer, T<:Number} end
When I subtype it, setting N=1
struct Point1D{T} <: PointND{1, T}
x::T
end
Julia throws error
ERROR: TypeError: in PointND, in N, expected N<:Integer, got Int64
even though (typeof(1)<:Integer) == true.
This happens even when N is of type Number. Why doesn't this work?